Style fixes to program.c
diff --git a/src/bc/program.c b/src/bc/program.c
index a3aa3b4..5237dc0 100644
--- a/src/bc/program.c
+++ b/src/bc/program.c
@@ -347,11 +347,7 @@
if (status) return status;
if (inst != BC_INST_OP_POWER) {
-
- BcNumBinaryFunc op;
-
- op = bc_program_math_ops[inst - BC_INST_OP_MODULUS];
-
+ BcNumBinaryFunc op = bc_program_math_ops[inst - BC_INST_OP_MODULUS];
status = op(num1, num2, &result.data.num, p->scale);
}
else status = bc_num_pow(num1, num2, &result.data.num, p->scale);
@@ -848,14 +844,9 @@
case BC_INST_OP_ASSIGN_PLUS:
case BC_INST_OP_ASSIGN_MINUS:
{
- BcNumBinaryFunc op;
-
- op = bc_program_assignOp(inst);
-
+ BcNumBinaryFunc op = bc_program_assignOp(inst);
status = op(scale, rval, scale, p->scale);
-
if (status) return status;
-
break;
}
@@ -876,8 +867,7 @@
if (status) return status;
- if (result > (unsigned long) p->scale_max)
- return BC_STATUS_EXEC_BAD_SCALE;
+ if (result > (unsigned long) p->scale_max) return BC_STATUS_EXEC_BAD_SCALE;
p->scale = (size_t) result;
@@ -905,8 +895,6 @@
if (left->type != BC_RESULT_SCALE) {
- if (status) return status;
-
switch (inst) {
case BC_INST_OP_ASSIGN_POWER: