mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 23:24:09 +00:00
Fix compiler warnings.
This commit is contained in:
parent
17d3fc47f3
commit
80d0acc7c1
@ -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. */
|
||||
|
@ -225,7 +225,8 @@ static CPToken cp_param(CPState *cp)
|
||||
return CTOK_INTEGER;
|
||||
} else {
|
||||
GCcdata *cd;
|
||||
if (!tviscdata(o)) lj_err_argtype(cp->L, o-cp->L->base+1, "type parameter");
|
||||
if (!tviscdata(o))
|
||||
lj_err_argtype(cp->L, (int)(o-cp->L->base)+1, "type parameter");
|
||||
cd = cdataV(o);
|
||||
if (cd->ctypeid == CTID_CTYPEID)
|
||||
cp->val.id = *(CTypeID *)cdataptr(cd);
|
||||
|
Loading…
Reference in New Issue
Block a user