comparison src/pseudo.c @ 94:83ba34ed11b3

Fixed problem with constant expressions evaluating to 0 when they shouldn't
author lost
date Sat, 17 Jan 2009 06:50:49 +0000
parents 6097cb1486f8
children f3497072ac44
comparison
equal deleted inserted replaced
93:34ca1c6e9550 94:83ba34ed11b3
128 if (as -> passnum == 1) 128 if (as -> passnum == 1)
129 { 129 {
130 as -> addr += l -> nocodelen; 130 as -> addr += l -> nocodelen;
131 return; 131 return;
132 } 132 }
133 133 r = lwasm_expr_result2(as, l, p, EXPR_PASS1CONST, &v, -1);
134 r = lwasm_expr_result2(as, l, p, EXPR_PASS1CONST, &v, 0);
135 if (r != 0) 134 if (r != 0)
136 return; 135 return;
137 l -> nocodelen = v; 136 l -> nocodelen = v;
138 as -> addr += v; 137 as -> addr += v;
139 } 138 }