Skip to content

Commit

Permalink
add error checking in USE_LABEL
Browse files Browse the repository at this point in the history
  • Loading branch information
iritkatriel committed Aug 10, 2022
1 parent bb16973 commit 8a57c23
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Python/compile.c
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,10 @@ static struct jump_target_label_ NO_LABEL = {-1};
return 0; \
}

#define USE_LABEL(C, LBL) cfg_builder_use_label(CFG_BUILDER(C), LBL)
#define USE_LABEL(C, LBL) \
if (cfg_builder_use_label(CFG_BUILDER(C), LBL) < 0) { \
return 0; \
}

struct instr {
int i_opcode;
Expand Down

0 comments on commit 8a57c23

Please sign in to comment.