[Python-checkins] commit of r41878 - python/trunk/Python/compile.c

martin.v.loewis python-checkins at python.org
Mon Jan 2 22:15:05 CET 2006


Author: martin.v.loewis
Date: Mon Jan  2 22:15:05 2006
New Revision: 41878

Modified:
   python/trunk/Python/compile.c
Log:
Adjust usage of compiler_use_new_block to its return type.


Modified: python/trunk/Python/compile.c
==============================================================================
--- python/trunk/Python/compile.c	(original)
+++ python/trunk/Python/compile.c	Mon Jan  2 22:15:05 2006
@@ -1124,7 +1124,7 @@
 	c->u = u;
 
         c->c_nestlevel++;
-	if (compiler_use_new_block(c) < 0)
+	if (compiler_use_new_block(c) == NULL)
 		return 0;
 
 	return 1;
@@ -2899,7 +2899,7 @@
 	else
 		jumpi = JUMP_IF_TRUE;
 	end = compiler_new_block(c);
-	if (end < 0)
+	if (end == NULL)
 		return 0;
 	s = e->v.BoolOp.values;
 	n = asdl_seq_LEN(s) - 1;


More information about the Python-checkins mailing list