aboutsummaryrefslogtreecommitdiff
path: root/src/lj_mcode.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lj_mcode.c')
-rw-r--r--src/lj_mcode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_mcode.c b/src/lj_mcode.c
index bc3e922f..e64c5878 100644
--- a/src/lj_mcode.c
+++ b/src/lj_mcode.c
@@ -351,7 +351,7 @@ MCode *lj_mcode_patch(jit_State *J, MCode *ptr, int finish)
351 /* Otherwise search through the list of MCode areas. */ 351 /* Otherwise search through the list of MCode areas. */
352 for (;;) { 352 for (;;) {
353 mc = ((MCLink *)mc)->next; 353 mc = ((MCLink *)mc)->next;
354 lua_assert(mc != NULL); 354 lj_assertJ(mc != NULL, "broken MCode area chain");
355 if (ptr >= mc && ptr < (MCode *)((char *)mc + ((MCLink *)mc)->size)) { 355 if (ptr >= mc && ptr < (MCode *)((char *)mc + ((MCLink *)mc)->size)) {
356 if (LJ_UNLIKELY(mcode_setprot(mc, ((MCLink *)mc)->size, MCPROT_GEN))) 356 if (LJ_UNLIKELY(mcode_setprot(mc, ((MCLink *)mc)->size, MCPROT_GEN)))
357 mcode_protfail(J); 357 mcode_protfail(J);