aboutsummaryrefslogtreecommitdiff
path: root/src/lj_ir.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lj_ir.c')
-rw-r--r--src/lj_ir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_ir.c b/src/lj_ir.c
index 63c98254..b4087aa7 100644
--- a/src/lj_ir.c
+++ b/src/lj_ir.c
@@ -345,7 +345,7 @@ TRef lj_ir_kptr_(jit_State *J, IROp op, void *ptr)
345{ 345{
346 IRIns *ir, *cir = J->cur.ir; 346 IRIns *ir, *cir = J->cur.ir;
347 IRRef ref; 347 IRRef ref;
348 lua_assert((void *)(intptr_t)i32ptr(ptr) == ptr); 348 lua_assert((void *)(uintptr_t)u32ptr(ptr) == ptr);
349 for (ref = J->chain[op]; ref; ref = cir[ref].prev) 349 for (ref = J->chain[op]; ref; ref = cir[ref].prev)
350 if (mref(cir[ref].ptr, void) == ptr) 350 if (mref(cir[ref].ptr, void) == ptr)
351 goto found; 351 goto found;