From 1e64c1391f9a14115b5cc82066dbf545ae73ee27 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 25 Oct 2022 16:44:06 -0300 Subject: Bug: stack overflow with nesting of coroutine.close --- lua.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lua.h') diff --git a/lua.h b/lua.h index 219784cc..bfba4d1e 100644 --- a/lua.h +++ b/lua.h @@ -153,7 +153,7 @@ extern const char lua_ident[]; LUA_API lua_State *(lua_newstate) (lua_Alloc f, void *ud); LUA_API void (lua_close) (lua_State *L); LUA_API lua_State *(lua_newthread) (lua_State *L); -LUA_API int (lua_resetthread) (lua_State *L); +LUA_API int (lua_resetthread) (lua_State *L, lua_State *from); LUA_API lua_CFunction (lua_atpanic) (lua_State *L, lua_CFunction panicf); -- cgit v1.2.3-55-g6feb