From b66cb8d4d4898d2bac4f0d6e0e663cb8f16a6ed8 Mon Sep 17 00:00:00 2001 From: Peter Johnson Date: Sun, 25 Sep 2005 00:15:17 +0000 Subject: [PATCH] * x86bc.c (x86_bc_insn_resolve): When handling shift_op, change immlen rather than munging bc->len directly. svn path=/trunk/yasm/; revision=1229 --- modules/arch/x86/x86bc.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/modules/arch/x86/x86bc.c b/modules/arch/x86/x86bc.c index 5fbd7910..c35274e9 100644 --- a/modules/arch/x86/x86bc.c +++ b/modules/arch/x86/x86bc.c @@ -598,10 +598,8 @@ x86_bc_insn_resolve(yasm_bytecode *bc, int save, if (insn->shift_op && temp && (num = yasm_expr_get_intnum(&temp, calc_bc_dist))) { if (num && yasm_intnum_get_uint(num) == 1) { - /* We can use the ,1 form: subtract out the imm len - * (as we add it back in below). - */ - bc->len -= imm->len; + /* We can use the ,1 form: no immediate (set to 0 len) */ + immlen = 0; if (save) { /* Make the ,1 form permanent. */ -- 2.40.0