Add contract check
This commit is contained in:
1 parent
e8ae66371a
commit
e0a5eb81d8
1 file changed
+1
@@ -243,6 +243,7 @@ bitset_pop_back(bool *dest, bitset_t v)
|
||||
static inline bool
|
||||
bitset_back(bitset_t v)
|
||||
{
|
||||
BITSETI_CONTRACT (v);
|
||||
assert(v->size > 0);
|
||||
return bitset_get(v, v->size-1);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user