Cast a struct to a void pointer so as to do a type-safe pointer comparison

(mistmatch found by clang).
This commit is contained in:
Brett Cannon 2008-02-07 07:47:31 +00:00
parent 882a416900
commit a6c41bc9e5
1 changed files with 3 additions and 3 deletions

View File

@ -392,9 +392,9 @@ compiler_unit_check(struct compiler_unit *u)
{
basicblock *block;
for (block = u->u_blocks; block != NULL; block = block->b_list) {
assert(block != (void *)0xcbcbcbcb);
assert(block != (void *)0xfbfbfbfb);
assert(block != (void *)0xdbdbdbdb);
assert((void *)block != (void *)0xcbcbcbcb);
assert((void *)block != (void *)0xfbfbfbfb);
assert((void *)block != (void *)0xdbdbdbdb);
if (block->b_instr != NULL) {
assert(block->b_ialloc > 0);
assert(block->b_iused > 0);