diff --git a/src/lj_record.c b/src/lj_record.c index fe7c24c9..f6ea4990 100644 --- a/src/lj_record.c +++ b/src/lj_record.c @@ -970,7 +970,7 @@ static int rec_isnumericarith(jit_State *J, if (tref_isnumber_str(rb) && tref_isnumber_str(rc)) { TValue tmp; if ((tref_isstr(rb) && !lj_strscan_num(strV(rbv), &tmp)) || - (tref_isstr(rb) && !lj_strscan_num(strV(rbv), &tmp))) { + (tref_isstr(rc) && !lj_strscan_num(strV(rcv), &tmp))) { /* Would need an inverted STRTO for this case. */ lj_trace_err_info(J, LJ_TRERR_NYIMM); }