Fix compiler warnings.

This commit is contained in:
Mike Pall
2012-07-03 13:22:30 +02:00
parent 17d3fc47f3
commit 80d0acc7c1
2 changed files with 3 additions and 2 deletions

View File

@@ -1558,7 +1558,7 @@ static void asm_setup_regsp(ASMState *as, int sink)
if (as->parent) {
uint16_t *p;
lastir = lj_snap_regspmap(as->parent, as->J->exitno, ir);
as->stopins = (lastir-1) - as->ir;
as->stopins = (IRRef)((lastir-1) - as->ir);
for (p = as->parentmap; ir < lastir; ir++) {
RegSP rs = ir->prev;
*p++ = (uint16_t)rs; /* Copy original parent RegSP to parentmap. */