diff options
Diffstat (limited to '')
-rw-r--r-- | lstate.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -320,7 +320,7 @@ void luaE_freethread (lua_State *L, lua_State *L1) { | |||
320 | } | 320 | } |
321 | 321 | ||
322 | 322 | ||
323 | int luaE_resetthread (lua_State *L, int status) { | 323 | TStatus luaE_resetthread (lua_State *L, TStatus status) { |
324 | CallInfo *ci = L->ci = &L->base_ci; /* unwind CallInfo list */ | 324 | CallInfo *ci = L->ci = &L->base_ci; /* unwind CallInfo list */ |
325 | setnilvalue(s2v(L->stack.p)); /* 'function' entry for basic 'ci' */ | 325 | setnilvalue(s2v(L->stack.p)); /* 'function' entry for basic 'ci' */ |
326 | ci->func.p = L->stack.p; | 326 | ci->func.p = L->stack.p; |
@@ -340,12 +340,12 @@ int luaE_resetthread (lua_State *L, int status) { | |||
340 | 340 | ||
341 | 341 | ||
342 | LUA_API int lua_closethread (lua_State *L, lua_State *from) { | 342 | LUA_API int lua_closethread (lua_State *L, lua_State *from) { |
343 | int status; | 343 | TStatus status; |
344 | lua_lock(L); | 344 | lua_lock(L); |
345 | L->nCcalls = (from) ? getCcalls(from) : 0; | 345 | L->nCcalls = (from) ? getCcalls(from) : 0; |
346 | status = luaE_resetthread(L, L->status); | 346 | status = luaE_resetthread(L, L->status); |
347 | lua_unlock(L); | 347 | lua_unlock(L); |
348 | return status; | 348 | return APIstatus(status); |
349 | } | 349 | } |
350 | 350 | ||
351 | 351 | ||