Adjust usage of compiler_use_new_block to its return type.

This commit is contained in:
Martin v. Löwis 2006-01-02 21:15:05 +00:00
parent 461aa5bbfc
commit 94962615b7
1 changed files with 2 additions and 2 deletions

View File

@ -1124,7 +1124,7 @@ compiler_enter_scope(struct compiler *c, identifier name, void *key,
c->u = u; c->u = u;
c->c_nestlevel++; c->c_nestlevel++;
if (compiler_use_new_block(c) < 0) if (compiler_use_new_block(c) == NULL)
return 0; return 0;
return 1; return 1;
@ -2899,7 +2899,7 @@ compiler_boolop(struct compiler *c, expr_ty e)
else else
jumpi = JUMP_IF_TRUE; jumpi = JUMP_IF_TRUE;
end = compiler_new_block(c); end = compiler_new_block(c);
if (end < 0) if (end == NULL)
return 0; return 0;
s = e->v.BoolOp.values; s = e->v.BoolOp.values;
n = asdl_seq_LEN(s) - 1; n = asdl_seq_LEN(s) - 1;