diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2006-01-02 21:15:05 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2006-01-02 21:15:05 (GMT) |
commit | 94962615b7a11741627fb99491113b680a97627d (patch) | |
tree | baf96012b37faee97c951599abcc1a167147fb8d /Python/compile.c | |
parent | 461aa5bbfcb3ce912e4873dc42db69bb72e92b35 (diff) | |
download | cpython-94962615b7a11741627fb99491113b680a97627d.zip cpython-94962615b7a11741627fb99491113b680a97627d.tar.gz cpython-94962615b7a11741627fb99491113b680a97627d.tar.bz2 |
Adjust usage of compiler_use_new_block to its return type.
Diffstat (limited to 'Python/compile.c')
-rw-r--r-- | Python/compile.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/compile.c b/Python/compile.c index 3ada52b..0d11d8a 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -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; |