aboutsummaryrefslogtreecommitdiff
path: root/lparser.c
diff options
context:
space:
mode:
authorRoberto I <roberto@inf.puc-rio.br>2025-08-09 15:08:53 -0300
committerRoberto I <roberto@inf.puc-rio.br>2025-08-09 15:08:53 -0300
commit5b179eaf6a78af5f000d76147af94669d04487b2 (patch)
treea3466ed22def25294ff1647d1af91cd4ef7fa567 /lparser.c
parent8fddca81e7d4137512e92f398ca638d61b935dbd (diff)
downloadlua-5b179eaf6a78af5f000d76147af94669d04487b2.tar.gz
lua-5b179eaf6a78af5f000d76147af94669d04487b2.tar.bz2
lua-5b179eaf6a78af5f000d76147af94669d04487b2.zip
Details
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 dde0b6d5..73dad6d7 100644
--- a/lparser.c
+++ b/lparser.c
@@ -1827,7 +1827,7 @@ static lu_byte getglobalattribute (LexState *ls, lu_byte df) {
1827 switch (kind) { 1827 switch (kind) {
1828 case RDKTOCLOSE: 1828 case RDKTOCLOSE:
1829 luaK_semerror(ls, "global variables cannot be to-be-closed"); 1829 luaK_semerror(ls, "global variables cannot be to-be-closed");
1830 break; /* to avoid warnings */ 1830 return kind; /* to avoid warnings */
1831 case RDKCONST: 1831 case RDKCONST:
1832 return GDKCONST; /* adjust kind for global variable */ 1832 return GDKCONST; /* adjust kind for global variable */
1833 default: 1833 default: