aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lj_record.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lj_record.c b/src/lj_record.c
index 2d92987e..dc3f3df0 100644
--- a/src/lj_record.c
+++ b/src/lj_record.c
@@ -109,7 +109,10 @@ static void rec_check_slots(jit_State *J)
109 if (tref_isk(tr)) { /* Compare constants. */ 109 if (tref_isk(tr)) { /* Compare constants. */
110 TValue tvk; 110 TValue tvk;
111 lj_ir_kvalue(J->L, &tvk, ir); 111 lj_ir_kvalue(J->L, &tvk, ir);
112 lua_assert(lj_obj_equal(tv, &tvk)); 112 if (!(tvisnum(&tvk) && tvisnan(&tvk)))
113 lua_assert(lj_obj_equal(tv, &tvk));
114 else
115 lua_assert(tvisnum(tv) && tvisnan(tv));
113 } 116 }
114 } 117 }
115 } 118 }