[Python-checkins] r60642 - python/trunk/Python/compile.c

brett.cannon python-checkins at python.org
Thu Feb 7 08:47:32 CET 2008


Author: brett.cannon
Date: Thu Feb  7 08:47:31 2008
New Revision: 60642

Modified:
   python/trunk/Python/compile.c
Log:
Cast a struct to a void pointer so as to do a type-safe pointer comparison
(mistmatch found by clang).


Modified: python/trunk/Python/compile.c
==============================================================================
--- python/trunk/Python/compile.c	(original)
+++ python/trunk/Python/compile.c	Thu Feb  7 08:47:31 2008
@@ -392,9 +392,9 @@
 {
 	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);


More information about the Python-checkins mailing list