diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2018-12-19 14:02:59 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2018-12-19 14:02:59 +0100 |
commit | 085b4202209c7cf9fe12b8823c939e8e028ed775 (patch) | |
tree | 78f3ae0c5ddab96cce085e71f0401c8a9c76e750 | |
parent | 5aa54830bf31ccd85d4ffa9be36a56adc64589f9 (diff) | |
download | busybox-085b4202209c7cf9fe12b8823c939e8e028ed775.tar.gz |
bc: "reload stack only after insts" change missed a few places
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | miscutils/bc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/miscutils/bc.c b/miscutils/bc.c index dde5c354e..ec7a0838b 100644 --- a/miscutils/bc.c +++ b/miscutils/bc.c @@ -6460,7 +6460,7 @@ static BC_STATUS zbc_program_exec(void) case BC_INST_POP_EXEC: dbg_exec("BC_INST_POP_EXEC:"); bc_vec_pop(&G.prog.exestack); - break; + goto read_updated_ip; case BC_INST_PRINT: case BC_INST_PRINT_POP: case BC_INST_PRINT_STR: @@ -6574,7 +6574,7 @@ static BC_STATUS zbc_program_exec(void) if (G.prog.exestack.len <= 2) QUIT_OR_RETURN_TO_MAIN; bc_vec_npop(&G.prog.exestack, 2); - break; + goto read_updated_ip; case BC_INST_NQUIT: s = zbc_program_nquit(); //goto read_updated_ip; - just fall through to it |