diff options
Diffstat (limited to 'src/lj_asm_mips.h')
-rw-r--r-- | src/lj_asm_mips.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_asm_mips.h b/src/lj_asm_mips.h index cf446346..0ae5e287 100644 --- a/src/lj_asm_mips.h +++ b/src/lj_asm_mips.h | |||
@@ -901,7 +901,7 @@ static void asm_fload(ASMState *as, IRIns *ir) | |||
901 | int32_t ofs; | 901 | int32_t ofs; |
902 | if (ir->op1 == REF_NIL) { | 902 | if (ir->op1 == REF_NIL) { |
903 | idx = RID_JGL; | 903 | idx = RID_JGL; |
904 | ofs = ir->op2 - 32768; | 904 | ofs = (ir->op2 << 2) - 32768; |
905 | } else { | 905 | } else { |
906 | idx = ra_alloc1(as, ir->op1, RSET_GPR); | 906 | idx = ra_alloc1(as, ir->op1, RSET_GPR); |
907 | if (ir->op2 == IRFL_TAB_ARRAY) { | 907 | if (ir->op2 == IRFL_TAB_ARRAY) { |