aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lj_record.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_record.c b/src/lj_record.c
index 8f42c4af..82350ccd 100644
--- a/src/lj_record.c
+++ b/src/lj_record.c
@@ -1121,7 +1121,7 @@ static TRef rec_idx_key(jit_State *J, RecordIndex *ix)
1121 return lj_ir_kkptr(J, niltvg(J2G(J))); 1121 return lj_ir_kkptr(J, niltvg(J2G(J)));
1122 } 1122 }
1123 if (tref_isinteger(key)) /* Hash keys are based on numbers, not ints. */ 1123 if (tref_isinteger(key)) /* Hash keys are based on numbers, not ints. */
1124 ix->key = key = emitir(IRTN(IR_CONV), key, IRCONV_NUM_INT); 1124 key = emitir(IRTN(IR_CONV), key, IRCONV_NUM_INT);
1125 if (tref_isk(key)) { 1125 if (tref_isk(key)) {
1126 /* Optimize lookup of constant hash keys. */ 1126 /* Optimize lookup of constant hash keys. */
1127 MSize hslot = (MSize)((char *)ix->oldv - (char *)&noderef(t->node)[0].val); 1127 MSize hslot = (MSize)((char *)ix->oldv - (char *)&noderef(t->node)[0].val);