From a6c41bc9e550fd8608e191bdcdfb419a8b1fd2c0 Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Thu, 7 Feb 2008 07:47:31 +0000 Subject: [PATCH] Cast a struct to a void pointer so as to do a type-safe pointer comparison (mistmatch found by clang). --- Python/compile.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Python/compile.c b/Python/compile.c index 83a8fc07cee..8ae56159e19 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -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);