Skip to content

Commit

Permalink
Fix differences between 'local function parent' and 'local parent = f…
Browse files Browse the repository at this point in the history
…unction'
  • Loading branch information
Sainan authored and well-in-that-case committed Jun 14, 2024
1 parent 2f220f2 commit 522daf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lparser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4384,7 +4384,7 @@ static void localfunc (LexState *ls) {
expdesc b;
FuncState *fs = ls->fs;
int fvar = fs->nactvar; /* function's variable index */
new_localvar(ls, str_checkname(ls, 0)); /* new local variable */
new_localvar(ls, str_checkname(ls, N_OVERRIDABLE)); /* new local variable */
adjustlocalvars(ls, 1); /* enter its scope */
TypeDesc funcdesc;
body(ls, &b, 0, ls->getLineNumber(), &funcdesc); /* function created in next register */
Expand Down

0 comments on commit 522daf4

Please sign in to comment.