diff Python/compile.c @ 36173:ade46371f04b legacy-trunk

Adjust usage of compiler_use_new_block to its return type.
author Martin v. Löwis <martin@v.loewis.de>
date Mon, 02 Jan 2006 21:15:05 +0000
parents 301fb0a99371
children 56ad9f275bec
line wrap: on
line diff
--- a/Python/compile.c	Mon Jan 02 20:07:16 2006 +0000
+++ b/Python/compile.c	Mon Jan 02 21:15:05 2006 +0000
@@ -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;