diff options
-rw-r--r-- | lparser.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lparser.c,v 1.191 2002/08/05 17:35:45 roberto Exp roberto $ | 2 | ** $Id: lparser.c,v 1.192 2002/08/20 20:03:05 roberto Exp roberto $ |
3 | ** Lua Parser | 3 | ** Lua Parser |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -1137,6 +1137,7 @@ static void funcstat (LexState *ls, int line) { | |||
1137 | needself = funcname(ls, &v); | 1137 | needself = funcname(ls, &v); |
1138 | body(ls, &b, needself, line); | 1138 | body(ls, &b, needself, line); |
1139 | luaK_storevar(ls->fs, &v, &b); | 1139 | luaK_storevar(ls->fs, &v, &b); |
1140 | luaK_fixline(ls->fs, line); /* definition `happens' in the first line */ | ||
1140 | } | 1141 | } |
1141 | 1142 | ||
1142 | 1143 | ||