summaryrefslogtreecommitdiff
path: root/src/lj_asm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lj_asm.c')
-rw-r--r--src/lj_asm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lj_asm.c b/src/lj_asm.c
index 8b984d8e..37b7e3f5 100644
--- a/src/lj_asm.c
+++ b/src/lj_asm.c
@@ -1439,10 +1439,10 @@ void lj_asm_trace(jit_State *J, GCtrace *T)
1439 1439
1440 /* Set trace entry point before fixing up tail to allow link to self. */ 1440 /* Set trace entry point before fixing up tail to allow link to self. */
1441 T->mcode = as->mcp; 1441 T->mcode = as->mcp;
1442 T->mcloop = as->mcloop ? (MSize)(as->mcloop - as->mcp) : 0; 1442 T->mcloop = as->mcloop ? (MSize)((char *)as->mcloop - (char *)as->mcp) : 0;
1443 if (!as->loopref) 1443 if (!as->loopref)
1444 asm_tail_fixup(as, T->link); /* Note: this may change as->mctop! */ 1444 asm_tail_fixup(as, T->link); /* Note: this may change as->mctop! */
1445 T->szmcode = (MSize)(as->mctop - as->mcp); 1445 T->szmcode = (MSize)((char *)as->mctop - (char *)as->mcp);
1446 VG_INVALIDATE(T->mcode, T->szmcode); 1446 VG_INVALIDATE(T->mcode, T->szmcode);
1447} 1447}
1448 1448