Fixed the debug builds having NDEBUG defined, causing stuff like asserts not working properly

This commit is contained in:
Steve Dudenhoeffer
2008-04-14 19:56:31 +00:00
parent 53ed817183
commit b33d2f559b
3 changed files with 4 additions and 4 deletions

View File

@@ -803,7 +803,7 @@ static void expand(unsigned char *code, long codesize, long memsize)
do {
codesize--;
/* no input byte should be shifted out completely */
assert(shift<8*sizeof(cell));
assert(shift<static_cast<int>(8*sizeof(cell)));
/* we work from the end of a sequence backwards; the final code in
* a sequence may not have the continuation bit set */
assert(shift>0 || (code[(size_t)codesize] & 0x80)==0);