comparison lwlib/lw_expr.c @ 443:a8934dfba400 3.0 3.0.1

Fixed operator precedence for *
author lost@l-w.ca
date Sat, 30 Oct 2010 15:02:57 -0600
parents 367bdde181be
children 5cccf90bf838
comparison
equal deleted inserted replaced
442:a9521955554f 443:a8934dfba400
1162 int operprec; 1162 int operprec;
1163 } operators[] = 1163 } operators[] =
1164 { 1164 {
1165 { lw_expr_oper_plus, "+", 100 }, 1165 { lw_expr_oper_plus, "+", 100 },
1166 { lw_expr_oper_minus, "-", 100 }, 1166 { lw_expr_oper_minus, "-", 100 },
1167 { lw_expr_oper_times, "*", 100 }, 1167 { lw_expr_oper_times, "*", 150 },
1168 { lw_expr_oper_divide, "/", 150 }, 1168 { lw_expr_oper_divide, "/", 150 },
1169 { lw_expr_oper_mod, "%", 150 }, 1169 { lw_expr_oper_mod, "%", 150 },
1170 { lw_expr_oper_intdiv, "\\", 150 }, 1170 { lw_expr_oper_intdiv, "\\", 150 },
1171 1171
1172 { lw_expr_oper_and, "&&", 25 }, 1172 { lw_expr_oper_and, "&&", 25 },