Add contract check

This commit is contained in:
Patrick Pelissier committed 2017-07-11 22:55:31 +02:00
1 parent e8ae66371a
commit e0a5eb81d8
1 file changed
+1
+1
View File
@@ -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);
}