diff --git a/Platform/Apple/tools/PLASMA/src/parse.c b/Platform/Apple/tools/PLASMA/src/parse.c index 127e78fd..8ed4d629 100644 --- a/Platform/Apple/tools/PLASMA/src/parse.c +++ b/Platform/Apple/tools/PLASMA/src/parse.c @@ -282,7 +282,7 @@ int parse_constexpr(long *value, int *size) if (scantoken == binary_ops_table[i]) { matchop = 2; - if (binary_ops_precedence[i] >= tos_op_prec(optos)) + while (binary_ops_precedence[i] >= tos_op_prec(optos)) if (!calc_op(pop_op())) parse_error("Invalid binary operation"); push_op(scantoken, binary_ops_precedence[i]); @@ -719,7 +719,7 @@ t_opseq *parse_expr(t_opseq *codeseq, int *stackdepth) if (scantoken == binary_ops_table[i]) { matchop = 2; - if (binary_ops_precedence[i] >= tos_op_prec(optos)) + while (binary_ops_precedence[i] >= tos_op_prec(optos)) { codeseq = gen_op(codeseq, pop_op()); if (stackdepth)