# HG changeset patch # User lost@l-w.ca # Date 1315454350 21600 # Node ID f8b07153abc47ddedcd13f86824374f30a66b5e3 # Parent 03f425c6c39c481208984af62fc0f52ae5b0dc9d Make 'imm8' instructions actually complain about a bad operand if no # is present diff -r 03f425c6c39c -r f8b07153abc4 lwasm/insn_gen.c --- a/lwasm/insn_gen.c Wed Sep 07 21:49:35 2011 -0600 +++ b/lwasm/insn_gen.c Wed Sep 07 21:59:10 2011 -0600 @@ -432,6 +432,10 @@ l -> len = OPLEN(instab[l -> insn].ops[0]) + 1; lwasm_save_expr(l, 0, e); } + else + { + lwasm_register_error(as, l, "Bad operand"); + } } EMITFUNC(insn_emit_imm8)