#include <stddef.h>
Set * allocSet(VarType t, uint64_t* elements, uint num) {
- Set * tmp=(Set *)ourmalloc(sizeof(struct Set));
+ Set * tmp=(Set *)ourmalloc(sizeof(Set));
tmp->type=t;
tmp->isRange=false;
tmp->low=0;
}
Set * allocSetRange(VarType t, uint64_t lowrange, uint64_t highrange) {
- Set * tmp=(Set *)ourmalloc(sizeof(struct Set));
+ Set * tmp=(Set *)ourmalloc(sizeof(Set));
tmp->type=t;
tmp->isRange=true;
tmp->low=lowrange;
}
void deleteSet(Set * set) {
- if (set->isRange)
+ if (!set->isRange)
deleteVectorInt(set->members);
ourfree(set);
}