diff options
| author | Roberto I <roberto@inf.puc-rio.br> | 2025-08-20 13:59:08 -0300 |
|---|---|---|
| committer | Roberto I <roberto@inf.puc-rio.br> | 2025-08-20 13:59:08 -0300 |
| commit | dd095677e38a104d0fd073f31530e08c9f5286fc (patch) | |
| tree | e46888706748091a63d2f2331235746caad97b43 /lfunc.c | |
| parent | 53dc5a3bbadac166a8b40904790f91b351e55dd9 (diff) | |
| download | lua-dd095677e38a104d0fd073f31530e08c9f5286fc.tar.gz lua-dd095677e38a104d0fd073f31530e08c9f5286fc.tar.bz2 lua-dd095677e38a104d0fd073f31530e08c9f5286fc.zip | |
Small cleaning services
Diffstat (limited to 'lfunc.c')
| -rw-r--r-- | lfunc.c | 3 |
1 files changed, 1 insertions, 2 deletions
| @@ -196,8 +196,7 @@ void luaF_unlinkupval (UpVal *uv) { | |||
| 196 | */ | 196 | */ |
| 197 | void luaF_closeupval (lua_State *L, StkId level) { | 197 | void luaF_closeupval (lua_State *L, StkId level) { |
| 198 | UpVal *uv; | 198 | UpVal *uv; |
| 199 | StkId upl; /* stack index pointed by 'uv' */ | 199 | while ((uv = L->openupval) != NULL && uplevel(uv) >= level) { |
| 200 | while ((uv = L->openupval) != NULL && (upl = uplevel(uv)) >= level) { | ||
| 201 | TValue *slot = &uv->u.value; /* new position for value */ | 200 | TValue *slot = &uv->u.value; /* new position for value */ |
| 202 | lua_assert(uplevel(uv) < L->top.p); | 201 | lua_assert(uplevel(uv) < L->top.p); |
| 203 | luaF_unlinkupval(uv); /* remove upvalue from 'openupval' list */ | 202 | luaF_unlinkupval(uv); /* remove upvalue from 'openupval' list */ |
