mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 23:24:09 +00:00
Fix assertion.
This commit is contained in:
parent
6f746577d0
commit
2940ab023a
@ -109,7 +109,10 @@ static void rec_check_slots(jit_State *J)
|
|||||||
if (tref_isk(tr)) { /* Compare constants. */
|
if (tref_isk(tr)) { /* Compare constants. */
|
||||||
TValue tvk;
|
TValue tvk;
|
||||||
lj_ir_kvalue(J->L, &tvk, ir);
|
lj_ir_kvalue(J->L, &tvk, ir);
|
||||||
lua_assert(lj_obj_equal(tv, &tvk));
|
if (!(tvisnum(&tvk) && tvisnan(&tvk)))
|
||||||
|
lua_assert(lj_obj_equal(tv, &tvk));
|
||||||
|
else
|
||||||
|
lua_assert(tvisnum(tv) && tvisnan(tv));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user