]> granicus.if.org Git - python/commitdiff
Adjust usage of compiler_use_new_block to its return type.
authorMartin v. Löwis <martin@v.loewis.de>
Mon, 2 Jan 2006 21:15:05 +0000 (21:15 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Mon, 2 Jan 2006 21:15:05 +0000 (21:15 +0000)
Python/compile.c

index 3ada52b3db5240015d1ee6faba4c26f15f6c6ec3..0d11d8a4343e2dea0fcdddec394ff2c1825f80c4 100644 (file)
@@ -1124,7 +1124,7 @@ compiler_enter_scope(struct compiler *c, identifier name, void *key,
        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 @@ compiler_boolop(struct compiler *c, expr_ty e)
        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;