aboutsummaryrefslogtreecommitdiff
path: root/lcode.c
diff options
context:
space:
mode:
Diffstat (limited to 'lcode.c')
-rw-r--r--lcode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lcode.c b/lcode.c
index 429d4f80..7c63abb2 100644
--- a/lcode.c
+++ b/lcode.c
@@ -1242,7 +1242,7 @@ static void codenot (FuncState *fs, expdesc *e) {
1242** Check whether expression 'e' is a short literal string 1242** Check whether expression 'e' is a short literal string
1243*/ 1243*/
1244static int isKstr (FuncState *fs, expdesc *e) { 1244static int isKstr (FuncState *fs, expdesc *e) {
1245 return (e->k == VK && !hasjumps(e) && e->u.info <= MAXARG_B && 1245 return (e->k == VK && !hasjumps(e) && e->u.info <= MAXINDEXRK &&
1246 ttisshrstring(&fs->f->k[e->u.info])); 1246 ttisshrstring(&fs->f->k[e->u.info]));
1247} 1247}
1248 1248