diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2025-05-12 11:42:45 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2025-05-12 11:42:45 -0300 |
commit | 7dc6aae29057c9dc4588f780c7abd72a62ff4c8e (patch) | |
tree | 8ebcbfb45b7f477162bf52854936f35200b72321 /lparser.c | |
parent | 5b1ab8efdcb7b48cab8148a407266c467d57114c (diff) | |
download | lua-7dc6aae29057c9dc4588f780c7abd72a62ff4c8e.tar.gz lua-7dc6aae29057c9dc4588f780c7abd72a62ff4c8e.tar.bz2 lua-7dc6aae29057c9dc4588f780c7abd72a62ff4c8e.zip |
Correct line in error message for constant function
Diffstat (limited to 'lparser.c')
-rw-r--r-- | lparser.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1858,8 +1858,8 @@ static void funcstat (LexState *ls, int line) { | |||
1858 | expdesc v, b; | 1858 | expdesc v, b; |
1859 | luaX_next(ls); /* skip FUNCTION */ | 1859 | luaX_next(ls); /* skip FUNCTION */ |
1860 | ismethod = funcname(ls, &v); | 1860 | ismethod = funcname(ls, &v); |
1861 | body(ls, &b, ismethod, line); | ||
1862 | check_readonly(ls, &v); | 1861 | check_readonly(ls, &v); |
1862 | body(ls, &b, ismethod, line); | ||
1863 | luaK_storevar(ls->fs, &v, &b); | 1863 | luaK_storevar(ls->fs, &v, &b); |
1864 | luaK_fixline(ls->fs, line); /* definition "happens" in the first line */ | 1864 | luaK_fixline(ls->fs, line); /* definition "happens" in the first line */ |
1865 | } | 1865 | } |