diff options
author | Brett Cannon <bcannon@gmail.com> | 2008-02-07 07:47:31 (GMT) |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2008-02-07 07:47:31 (GMT) |
commit | a6c41bc9e550fd8608e191bdcdfb419a8b1fd2c0 (patch) | |
tree | 39ae6a5efe65a911f46a16ac12bd9aa064c90a5b /Python | |
parent | 882a416900ab24d78f398809d1b1a4a119db91e6 (diff) | |
download | cpython-a6c41bc9e550fd8608e191bdcdfb419a8b1fd2c0.zip cpython-a6c41bc9e550fd8608e191bdcdfb419a8b1fd2c0.tar.gz cpython-a6c41bc9e550fd8608e191bdcdfb419a8b1fd2c0.tar.bz2 |
Cast a struct to a void pointer so as to do a type-safe pointer comparison
(mistmatch found by clang).
Diffstat (limited to 'Python')
-rw-r--r-- | Python/compile.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Python/compile.c b/Python/compile.c index 83a8fc0..8ae5615 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); |