1
0
mirror of https://github.com/lua/lua.git synced 2025-01-28 06:03:00 +08:00

Fixed warnings from Keil compiler

This commit is contained in:
Roberto Ierusalimschy 2019-10-25 17:41:40 -03:00
parent ba9cd0d25a
commit c12983cf8a
2 changed files with 4 additions and 7 deletions

View File

@ -110,7 +110,7 @@ int luaK_exp2const (FuncState *fs, const expdesc *e, TValue *v) {
** optimizations).
*/
static Instruction *previousinstruction (FuncState *fs) {
static const Instruction invalidinstruction = -1;
static const Instruction invalidinstruction = ~(Instruction)0;
if (fs->pc > fs->lasttarget)
return &fs->f->code[fs->pc - 1]; /* previous instruction */
else

9
lvm.c
View File

@ -1561,12 +1561,9 @@ void luaV_execute (lua_State *L, CallInfo *ci) {
luaD_poscall(L, ci, cast_int(L->top - ra));
return;
}
else { /* Lua tail call */
ci->func -= delta;
luaD_pretailcall(L, ci, ra, b); /* prepare call frame */
goto tailcall;
}
vmbreak;
ci->func -= delta;
luaD_pretailcall(L, ci, ra, b); /* prepare call frame */
goto tailcall;
}
vmcase(OP_RETURN) {
int n = GETARG_B(i) - 1; /* number of results */