diff options
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 |
