diff options
Diffstat (limited to '')
| -rw-r--r-- | src/3rdParty/lua/lfunc.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/3rdParty/lua/lfunc.c b/src/3rdParty/lua/lfunc.c index f5889a2..daba0ab 100644 --- a/src/3rdParty/lua/lfunc.c +++ b/src/3rdParty/lua/lfunc.c | |||
| @@ -209,7 +209,7 @@ void luaF_closeupval (lua_State *L, StkId level) { | |||
| 209 | 209 | ||
| 210 | 210 | ||
| 211 | /* | 211 | /* |
| 212 | ** Remove firt element from the tbclist plus its dummy nodes. | 212 | ** Remove first element from the tbclist plus its dummy nodes. |
| 213 | */ | 213 | */ |
| 214 | static void poptbclist (lua_State *L) { | 214 | static void poptbclist (lua_State *L) { |
| 215 | StkId tbc = L->tbclist; | 215 | StkId tbc = L->tbclist; |
| @@ -223,9 +223,9 @@ static void poptbclist (lua_State *L) { | |||
| 223 | 223 | ||
| 224 | /* | 224 | /* |
| 225 | ** Close all upvalues and to-be-closed variables up to the given stack | 225 | ** Close all upvalues and to-be-closed variables up to the given stack |
| 226 | ** level. | 226 | ** level. Return restored 'level'. |
| 227 | */ | 227 | */ |
| 228 | void luaF_close (lua_State *L, StkId level, int status, int yy) { | 228 | StkId luaF_close (lua_State *L, StkId level, int status, int yy) { |
| 229 | ptrdiff_t levelrel = savestack(L, level); | 229 | ptrdiff_t levelrel = savestack(L, level); |
| 230 | luaF_closeupval(L, level); /* first, close the upvalues */ | 230 | luaF_closeupval(L, level); /* first, close the upvalues */ |
| 231 | while (L->tbclist >= level) { /* traverse tbc's down to that level */ | 231 | while (L->tbclist >= level) { /* traverse tbc's down to that level */ |
| @@ -234,6 +234,7 @@ void luaF_close (lua_State *L, StkId level, int status, int yy) { | |||
| 234 | prepcallclosemth(L, tbc, status, yy); /* close variable */ | 234 | prepcallclosemth(L, tbc, status, yy); /* close variable */ |
| 235 | level = restorestack(L, levelrel); | 235 | level = restorestack(L, levelrel); |
| 236 | } | 236 | } |
| 237 | return level; | ||
| 237 | } | 238 | } |
| 238 | 239 | ||
| 239 | 240 | ||
