From 78f69596300e5fd14bbf453875a7c7d50da6dfad Mon Sep 17 00:00:00 2001 From: Daniel_Cortez Date: Thu, 8 Feb 2018 00:50:05 +0700 Subject: [PATCH] emit: Change the argument type in 'lidx.b' and 'idxaddr.b' to 'shift' --- source/compiler/sc1.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/compiler/sc1.c b/source/compiler/sc1.c index 0d89c7f..93a2d2f 100644 --- a/source/compiler/sc1.c +++ b/source/compiler/sc1.c @@ -6624,7 +6624,7 @@ static EMIT_OPCODE emit_opcodelist[] = { {120, "halt", emit_parm1_nonneg }, { 45, "heap", emit_parm1_integer }, { 27, "idxaddr", emit_parm0 }, - { 28, "idxaddr.b", emit_parm1_any }, + { 28, "idxaddr.b", emit_parm1_shift }, {109, "inc", emit_parm1_data }, {108, "inc.alt", emit_parm0 }, {111, "inc.i", emit_parm0 }, @@ -6650,7 +6650,7 @@ static EMIT_OPCODE emit_opcodelist[] = { { 98, "leq", emit_parm0 }, { 97, "less", emit_parm0 }, { 25, "lidx", emit_parm0 }, - { 26, "lidx.b", emit_parm1_any }, + { 26, "lidx.b", emit_parm1_shift }, { 2, "load.alt", emit_parm1_data }, {154, "load.both", emit_do_load_both }, { 9, "load.i", emit_parm0 },