comparison lwasm/lwasm.c @ 95:a23f732c5ce8

Fixed &-prefix decimal constant parse problem
author lost@l-w.ca
date Sat, 06 Aug 2011 10:37:27 -0600
parents 61c084b2c727
children 40409fd84824
comparison
equal deleted inserted replaced
94:61c084b2c727 95:a23f732c5ce8
353 while (**p && strchr("0123456789", **p)) 353 while (**p && strchr("0123456789", **p))
354 { 354 {
355 val = val * 10 + (**p - '0'); 355 val = val * 10 + (**p - '0');
356 (*p)++; 356 (*p)++;
357 } 357 }
358 return lw_expr_build(lw_expr_type_int, v * neg); 358 return lw_expr_build(lw_expr_type_int, val * neg);
359 } 359 }
360 360
361 if (**p == '%') 361 if (**p == '%')
362 { 362 {
363 // binary constant 363 // binary constant