From 94d38560c3095190fa2c868cbf7bcf39ca444568 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 14 Mar 2025 15:16:09 -0300 Subject: Wrong error message when using "_ENV" fields The string "_ENV" is erroneously identified as a variable _ENV, so that results from a field is classified as a global. --- ltests.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ltests.c') diff --git a/ltests.c b/ltests.c index f4855fea..d3509862 100644 --- a/ltests.c +++ b/ltests.c @@ -982,7 +982,7 @@ static int gc_printobj (lua_State *L) { } -static const char *statenames[] = { +static const char *const statenames[] = { "propagate", "enteratomic", "atomic", "sweepallgc", "sweepfinobj", "sweeptobefnz", "sweepend", "callfin", "pause", ""}; -- cgit v1.2.3-55-g6feb