diff options
Diffstat (limited to '')
-rw-r--r-- | src/lj_record.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_record.c b/src/lj_record.c index 5e11a48b..02171300 100644 --- a/src/lj_record.c +++ b/src/lj_record.c | |||
@@ -1142,7 +1142,7 @@ static void rec_idx_abc(jit_State *J, TRef asizeref, TRef ikey, uint32_t asize) | |||
1142 | lua_assert(irt_isint(J->scev.t) && ir->o == IR_SLOAD); | 1142 | lua_assert(irt_isint(J->scev.t) && ir->o == IR_SLOAD); |
1143 | stop = numberVint(&(J->L->base - J->baseslot)[ir->op1 + FORL_STOP]); | 1143 | stop = numberVint(&(J->L->base - J->baseslot)[ir->op1 + FORL_STOP]); |
1144 | /* Runtime value for stop of loop is within bounds? */ | 1144 | /* Runtime value for stop of loop is within bounds? */ |
1145 | if ((int64_t)stop + ofs < (int64_t)asize) { | 1145 | if ((uint64_t)stop + ofs < (uint64_t)asize) { |
1146 | /* Emit invariant bounds check for stop. */ | 1146 | /* Emit invariant bounds check for stop. */ |
1147 | emitir(IRTG(IR_ABC, IRT_P32), asizeref, ofs == 0 ? J->scev.stop : | 1147 | emitir(IRTG(IR_ABC, IRT_P32), asizeref, ofs == 0 ? J->scev.stop : |
1148 | emitir(IRTI(IR_ADD), J->scev.stop, ofsref)); | 1148 | emitir(IRTI(IR_ADD), J->scev.stop, ofsref)); |