mirror of
https://github.com/corda/corda.git
synced 2025-02-27 19:46:38 +00:00
always call bitsetHasMore() from bitsetNext(), regardless of whether assertions are enabled
This commit is contained in:
parent
27c8511c5e
commit
af6f2bbc46
@ -744,7 +744,7 @@ bitsetSet(uintptr_t* p, unsigned i, bool v)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned
|
bool
|
||||||
bitsetHasMore(uintptr_t* p)
|
bitsetHasMore(uintptr_t* p)
|
||||||
{
|
{
|
||||||
switch (*p) {
|
switch (*p) {
|
||||||
@ -770,7 +770,8 @@ bitsetHasMore(uintptr_t* p)
|
|||||||
unsigned
|
unsigned
|
||||||
bitsetNext(Context* c, uintptr_t* p)
|
bitsetNext(Context* c, uintptr_t* p)
|
||||||
{
|
{
|
||||||
assert(c, bitsetHasMore(p));
|
bool more UNUSED = bitsetHasMore(p);
|
||||||
|
assert(c, more);
|
||||||
|
|
||||||
switch (*p) {
|
switch (*p) {
|
||||||
case 0: abort(c);
|
case 0: abort(c);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user