diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2025-03-14 15:16:09 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2025-03-14 15:16:09 -0300 |
| commit | 94d38560c3095190fa2c868cbf7bcf39ca444568 (patch) | |
| tree | b68480036d7d92dc38f68953e53757f52fdc06a8 /ltests.c | |
| parent | c2dc6e8e947ed0c7b18d452592f722f56ee1f96a (diff) | |
| download | lua-94d38560c3095190fa2c868cbf7bcf39ca444568.tar.gz lua-94d38560c3095190fa2c868cbf7bcf39ca444568.tar.bz2 lua-94d38560c3095190fa2c868cbf7bcf39ca444568.zip | |
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.
Diffstat (limited to 'ltests.c')
| -rw-r--r-- | ltests.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -982,7 +982,7 @@ static int gc_printobj (lua_State *L) { | |||
| 982 | } | 982 | } |
| 983 | 983 | ||
| 984 | 984 | ||
| 985 | static const char *statenames[] = { | 985 | static const char *const statenames[] = { |
| 986 | "propagate", "enteratomic", "atomic", "sweepallgc", "sweepfinobj", | 986 | "propagate", "enteratomic", "atomic", "sweepallgc", "sweepfinobj", |
| 987 | "sweeptobefnz", "sweepend", "callfin", "pause", ""}; | 987 | "sweeptobefnz", "sweepend", "callfin", "pause", ""}; |
| 988 | 988 | ||
