version 1.1.1.1, 2013/10/14 10:32:48
|
version 1.1.1.2, 2014/06/15 20:20:06
|
Line 23 bitset *bitset_init(size_t nbits) {
|
Line 23 bitset *bitset_init(size_t nbits) {
|
bitset *set; |
bitset *set; |
|
|
set = malloc(sizeof(*set)); |
set = malloc(sizeof(*set)); |
assert(set); | force_assert(set); |
|
|
set->bits = calloc(BITSET_USED(nbits), sizeof(*set->bits)); |
set->bits = calloc(BITSET_USED(nbits), sizeof(*set->bits)); |
set->nbits = nbits; |
set->nbits = nbits; |
|
|
assert(set->bits); | force_assert(set->bits); |
|
|
return set; |
return set; |
} |
} |