diff options
-rw-r--r-- | miscutils/bc.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/miscutils/bc.c b/miscutils/bc.c index e7f48fcea..acc0b6073 100644 --- a/miscutils/bc.c +++ b/miscutils/bc.c | |||
@@ -5933,7 +5933,7 @@ static BC_STATUS zbc_program_negate(void) | |||
5933 | # define zbc_program_negate(...) (zbc_program_negate(__VA_ARGS__), BC_STATUS_SUCCESS) | 5933 | # define zbc_program_negate(...) (zbc_program_negate(__VA_ARGS__), BC_STATUS_SUCCESS) |
5934 | #endif | 5934 | #endif |
5935 | 5935 | ||
5936 | static BcStatus bc_program_logical(char inst) | 5936 | static BC_STATUS zbc_program_logical(char inst) |
5937 | { | 5937 | { |
5938 | BcStatus s; | 5938 | BcStatus s; |
5939 | BcResult *opd1, *opd2, res; | 5939 | BcResult *opd1, *opd2, res; |
@@ -5942,7 +5942,7 @@ static BcStatus bc_program_logical(char inst) | |||
5942 | ssize_t cmp; | 5942 | ssize_t cmp; |
5943 | 5943 | ||
5944 | s = zbc_program_binOpPrep(&opd1, &n1, &opd2, &n2, false); | 5944 | s = zbc_program_binOpPrep(&opd1, &n1, &opd2, &n2, false); |
5945 | if (s) return s; | 5945 | if (s) RETURN_STATUS(s); |
5946 | 5946 | ||
5947 | bc_num_init_DEF_SIZE(&res.d.n); | 5947 | bc_num_init_DEF_SIZE(&res.d.n); |
5948 | 5948 | ||
@@ -5979,8 +5979,11 @@ static BcStatus bc_program_logical(char inst) | |||
5979 | 5979 | ||
5980 | bc_program_binOpRetire(&res); | 5980 | bc_program_binOpRetire(&res); |
5981 | 5981 | ||
5982 | return s; | 5982 | RETURN_STATUS(s); |
5983 | } | 5983 | } |
5984 | #if ERRORS_ARE_FATAL | ||
5985 | # define zbc_program_logical(...) (zbc_program_logical(__VA_ARGS__), BC_STATUS_SUCCESS) | ||
5986 | #endif | ||
5984 | 5987 | ||
5985 | #if ENABLE_DC | 5988 | #if ENABLE_DC |
5986 | static BC_STATUS zbc_program_assignStr(BcResult *r, BcVec *v, | 5989 | static BC_STATUS zbc_program_assignStr(BcResult *r, BcVec *v, |
@@ -6884,7 +6887,7 @@ static BcStatus bc_program_exec(void) | |||
6884 | case BC_INST_REL_NE: | 6887 | case BC_INST_REL_NE: |
6885 | case BC_INST_REL_LT: | 6888 | case BC_INST_REL_LT: |
6886 | case BC_INST_REL_GT: | 6889 | case BC_INST_REL_GT: |
6887 | s = bc_program_logical(inst); | 6890 | s = zbc_program_logical(inst); |
6888 | break; | 6891 | break; |
6889 | case BC_INST_READ: | 6892 | case BC_INST_READ: |
6890 | s = bc_program_read(); | 6893 | s = bc_program_read(); |