aboutsummaryrefslogtreecommitdiff
path: root/src/lj_opt_loop.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lj_opt_loop.c')
-rw-r--r--src/lj_opt_loop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_opt_loop.c b/src/lj_opt_loop.c
index f370d59f..4f1d31a4 100644
--- a/src/lj_opt_loop.c
+++ b/src/lj_opt_loop.c
@@ -301,7 +301,7 @@ static void loop_unroll(jit_State *J)
301 /* Check all loop-carried dependencies for type instability. */ 301 /* Check all loop-carried dependencies for type instability. */
302 if (!irt_sametype(t, irr->t)) { 302 if (!irt_sametype(t, irr->t)) {
303 if (irt_isnum(t) && irt_isinteger(irr->t)) /* Fix int->num case. */ 303 if (irt_isnum(t) && irt_isinteger(irr->t)) /* Fix int->num case. */
304 subst[ins] = tref_ref(emitir(IRTN(IR_TONUM), ref, 0)); 304 subst[ins] = tref_ref(emitir(IRTN(IR_CONV), ref, IRCONV_NUM_INT));
305 else if (!(irt_isinteger(t) && irt_isinteger(irr->t))) 305 else if (!(irt_isinteger(t) && irt_isinteger(irr->t)))
306 lj_trace_err(J, LJ_TRERR_TYPEINS); 306 lj_trace_err(J, LJ_TRERR_TYPEINS);
307 } 307 }