aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--miscutils/bc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/miscutils/bc.c b/miscutils/bc.c
index 29007d828..bb83e0a14 100644
--- a/miscutils/bc.c
+++ b/miscutils/bc.c
@@ -6678,9 +6678,9 @@ static BC_STATUS zbc_vm_process(const char *text)
6678 BcInstPtr *ip = (void*)G.prog.exestack.v; 6678 BcInstPtr *ip = (void*)G.prog.exestack.v;
6679 6679
6680#if SANITY_CHECKS 6680#if SANITY_CHECKS
6681 if (G.prog.results.len != 0) 6681 if (G.prog.results.len != 0) // should be empty
6682 bb_error_msg_and_die("data stack not empty: %d slots", G.prog.results.len); 6682 bb_error_msg_and_die("BUG:data stack");
6683 if (G.prog.exestack.len != 1) // should be empty 6683 if (G.prog.exestack.len != 1) // should have only main's IP
6684 bb_error_msg_and_die("BUG:call stack"); 6684 bb_error_msg_and_die("BUG:call stack");
6685 if (ip->func != BC_PROG_MAIN) 6685 if (ip->func != BC_PROG_MAIN)
6686 bb_error_msg_and_die("BUG:not MAIN"); 6686 bb_error_msg_and_die("BUG:not MAIN");