]> granicus.if.org Git - yasm/commitdiff
x86_finalize_jmp(): Fix two incorrect usages of info instead of jinfo.
authorPeter Johnson <peter@tortall.net>
Thu, 11 Oct 2007 06:38:29 +0000 (06:38 -0000)
committerPeter Johnson <peter@tortall.net>
Thu, 11 Oct 2007 06:38:29 +0000 (06:38 -0000)
svn path=/trunk/yasm/; revision=2002

modules/arch/x86/x86id.c

index 0687ef156b41c7055f05d6dc07e948c5631dce44..f16b3a10abc565b60c58719020103fb93c3dbe01 100644 (file)
@@ -453,7 +453,7 @@ x86_finalize_jmp(yasm_bytecode *bc, yasm_bytecode *prev_bc,
             size_lookup[insn_operands[jinfo->operands_index+1].size];
 
     /* Check for address size override */
-    for (i=0; i<NELEMS(info->modifiers); i++) {
+    for (i=0; i<NELEMS(jinfo->modifiers); i++) {
         if (jinfo->modifiers[i] == MOD_AdSizeR)
             jmp->common.addrsize = mod_data[i];
     }
@@ -529,7 +529,8 @@ x86_finalize_jmp(yasm_bytecode *bc, yasm_bytecode *prev_bc,
             jmp->op_sel = JMP_NEAR_FORCED;
     }
 
-    yasm_x86__bc_apply_prefixes((x86_common *)jmp, NULL, info->def_opersize_64,
+    yasm_x86__bc_apply_prefixes((x86_common *)jmp, NULL,
+                                jinfo->def_opersize_64,
                                 id_insn->insn.num_prefixes,
                                 id_insn->insn.prefixes);