Mercurial > hg-old > index.cgi
changeset 439:b8549694b4c9 3.0
Fixed errors related to lw_expr_t; fixed saving expression in insn_parse_logicmem()
author | lost@l-w.ca |
---|---|
date | Sat, 30 Oct 2010 10:41:52 -0600 |
parents | 22bbb716dea6 |
children | 367bdde181be |
files | lwasm/insn_gen.c lwasm/insn_logicmem.c |
diffstat | 2 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/lwasm/insn_gen.c Sat Oct 30 10:40:26 2010 -0600 +++ b/lwasm/insn_gen.c Sat Oct 30 10:41:52 2010 -0600 @@ -38,7 +38,7 @@ { const char *optr2; int v1, tv, rval; - lw_expr_t *s; + lw_expr_t s; optr2 = *p; while (*optr2 && !isspace(*optr2) && *optr2 != ',') optr2++ @@ -129,7 +129,7 @@ void insn_resolve_gen_aux(asmstate_t *as, line_t *l, int force, int elen) { - lw_expr_t *e; + lw_expr_t e; if (l -> lint2 == 1) {
--- a/lwasm/insn_logicmem.c Sat Oct 30 10:40:26 2010 -0600 +++ b/lwasm/insn_logicmem.c Sat Oct 30 10:41:52 2010 -0600 @@ -38,7 +38,7 @@ PARSEFUNC(insn_parse_logicmem) { const char *p2; - lw_expr_t *s; + lw_expr_t s; if (**p == '#') (*p)++; @@ -50,7 +50,7 @@ return; } - lwasm_save_expr(l, 100, p); + lwasm_save_expr(l, 100, s); if (**p != ',' && **p != ';') { lwasm_register_error(as, l, "Bad operand");