diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2019-10-25 17:41:40 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2019-10-25 17:41:40 -0300 |
| commit | c12983cf8afac4c4c757b84aaddab1935a931641 (patch) | |
| tree | 3f339aedf5d25c8a19cab4eb8dda76f761e7255f /lcode.c | |
| parent | ba9cd0d25a022cf61c0b747d8e26f9ba81201112 (diff) | |
| download | lua-c12983cf8afac4c4c757b84aaddab1935a931641.tar.gz lua-c12983cf8afac4c4c757b84aaddab1935a931641.tar.bz2 lua-c12983cf8afac4c4c757b84aaddab1935a931641.zip | |
Fixed warnings from Keil compiler
Diffstat (limited to 'lcode.c')
| -rw-r--r-- | lcode.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -110,7 +110,7 @@ int luaK_exp2const (FuncState *fs, const expdesc *e, TValue *v) { | |||
| 110 | ** optimizations). | 110 | ** optimizations). |
| 111 | */ | 111 | */ |
| 112 | static Instruction *previousinstruction (FuncState *fs) { | 112 | static Instruction *previousinstruction (FuncState *fs) { |
| 113 | static const Instruction invalidinstruction = -1; | 113 | static const Instruction invalidinstruction = ~(Instruction)0; |
| 114 | if (fs->pc > fs->lasttarget) | 114 | if (fs->pc > fs->lasttarget) |
| 115 | return &fs->f->code[fs->pc - 1]; /* previous instruction */ | 115 | return &fs->f->code[fs->pc - 1]; /* previous instruction */ |
| 116 | else | 116 | else |
