aboutsummaryrefslogtreecommitdiff
path: root/lparser.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2024-06-20 13:43:33 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2024-06-20 13:43:33 -0300
commit55ac40f859ad8e28fe71a8801d49f4a4140e8aa3 (patch)
tree1a1f02de45d28c7eb8976087ade773d7937bed14 /lparser.c
parent97ef8e7bd40340d47a9789beb06f0128d7438d0a (diff)
downloadlua-55ac40f859ad8e28fe71a8801d49f4a4140e8aa3.tar.gz
lua-55ac40f859ad8e28fe71a8801d49f4a4140e8aa3.tar.bz2
lua-55ac40f859ad8e28fe71a8801d49f4a4140e8aa3.zip
Cleaning of llimits.h
Several definitions that don't need to be "global" (that is, that concerns only specific parts of the code) moved out of llimits.h, to more appropriate places.
Diffstat (limited to 'lparser.c')
-rw-r--r--lparser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lparser.c b/lparser.c
index 2a84637a..cdc8cf42 100644
--- a/lparser.c
+++ b/lparser.c
@@ -859,7 +859,7 @@ static void recfield (LexState *ls, ConsControl *cc) {
859 int reg = ls->fs->freereg; 859 int reg = ls->fs->freereg;
860 expdesc tab, key, val; 860 expdesc tab, key, val;
861 if (ls->t.token == TK_NAME) { 861 if (ls->t.token == TK_NAME) {
862 checklimit(fs, cc->nh, MAX_INT, "items in a constructor"); 862 checklimit(fs, cc->nh, INT_MAX, "items in a constructor");
863 codename(ls, &key); 863 codename(ls, &key);
864 } 864 }
865 else /* ls->t.token == '[' */ 865 else /* ls->t.token == '[' */