Kaydet (Commit) a6c41bc9 authored tarafından Brett Cannon's avatar Brett Cannon

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

(mistmatch found by clang).
üst 882a4169
...@@ -392,9 +392,9 @@ compiler_unit_check(struct compiler_unit *u) ...@@ -392,9 +392,9 @@ compiler_unit_check(struct compiler_unit *u)
{ {
basicblock *block; basicblock *block;
for (block = u->u_blocks; block != NULL; block = block->b_list) { for (block = u->u_blocks; block != NULL; block = block->b_list) {
assert(block != (void *)0xcbcbcbcb); assert((void *)block != (void *)0xcbcbcbcb);
assert(block != (void *)0xfbfbfbfb); assert((void *)block != (void *)0xfbfbfbfb);
assert(block != (void *)0xdbdbdbdb); assert((void *)block != (void *)0xdbdbdbdb);
if (block->b_instr != NULL) { if (block->b_instr != NULL) {
assert(block->b_ialloc > 0); assert(block->b_ialloc > 0);
assert(block->b_iused > 0); assert(block->b_iused > 0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment