diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-10-02 19:50:57 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-10-02 19:50:57 -0300 |
| commit | f3b3d9b5c2e014148fad830b6762efb57fdcb24b (patch) | |
| tree | 349238961360128007ae79f86f2e05dc24ff7159 /lcode.c | |
| parent | 7f9a32ad854d0c91a0ec231199933d536ecce3db (diff) | |
| download | lua-f3b3d9b5c2e014148fad830b6762efb57fdcb24b.tar.gz lua-f3b3d9b5c2e014148fad830b6762efb57fdcb24b.tar.bz2 lua-f3b3d9b5c2e014148fad830b6762efb57fdcb24b.zip | |
string constants (Kstr) must fit into 'B' register
Diffstat (limited to 'lcode.c')
| -rw-r--r-- | lcode.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lcode.c,v 2.126 2017/09/28 16:53:29 roberto Exp roberto $ | 2 | ** $Id: lcode.c,v 2.127 2017/10/01 19:13:43 roberto Exp roberto $ |
| 3 | ** Code generator for Lua | 3 | ** Code generator for Lua |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -1057,7 +1057,7 @@ static void codenot (FuncState *fs, expdesc *e) { | |||
| 1057 | ** Check whether expression 'e' is a small literal string | 1057 | ** Check whether expression 'e' is a small literal string |
| 1058 | */ | 1058 | */ |
| 1059 | static int isKstr (FuncState *fs, expdesc *e) { | 1059 | static int isKstr (FuncState *fs, expdesc *e) { |
| 1060 | return (e->k == VK && !hasjumps(e) && e->u.info <= MAXARG_C && | 1060 | return (e->k == VK && !hasjumps(e) && e->u.info <= MAXARG_B && |
| 1061 | ttisshrstring(&fs->f->k[e->u.info])); | 1061 | ttisshrstring(&fs->f->k[e->u.info])); |
| 1062 | } | 1062 | } |
| 1063 | 1063 | ||
