From c12983cf8afac4c4c757b84aaddab1935a931641 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 25 Oct 2019 17:41:40 -0300 Subject: Fixed warnings from Keil compiler --- lcode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lcode.c') diff --git a/lcode.c b/lcode.c index 3e4c5b49..2432b346 100644 --- a/lcode.c +++ b/lcode.c @@ -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 -- cgit v1.2.3-55-g6feb