From: Brett Cannon Date: Thu, 7 Feb 2008 07:47:31 +0000 (+0000) Subject: Cast a struct to a void pointer so as to do a type-safe pointer comparison X-Git-Tag: v2.6a1~245 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a6c41bc9e550fd8608e191bdcdfb419a8b1fd2c0;p=thirdparty%2FPython%2Fcpython.git Cast a struct to a void pointer so as to do a type-safe pointer comparison (mistmatch found by clang). --- diff --git a/Python/compile.c b/Python/compile.c index 83a8fc07cee2..8ae56159e193 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);