diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2025-01-05 15:16:15 +1100 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2025-01-05 15:16:15 +1100 |
commit | 9bc12f5f97f6774e6eeeb3ef577e026cc8d03357 (patch) | |
tree | 7b2909e6869cf1dff081e114e9693c8736b1480e /source/extern/lua/lcorolib.c | |
parent | 41f0b9001f60c59691ec04d937e6a9ef424794f1 (diff) |
Lua 5.3.6
Diffstat (limited to 'source/extern/lua/lcorolib.c')
-rw-r--r-- | source/extern/lua/lcorolib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/extern/lua/lcorolib.c b/source/extern/lua/lcorolib.c index 0c0b7fa..0b17af9 100644 --- a/source/extern/lua/lcorolib.c +++ b/source/extern/lua/lcorolib.c @@ -1,5 +1,5 @@ /* -** $Id: lcorolib.c,v 1.9 2014/11/02 19:19:04 roberto Exp $ +** $Id: lcorolib.c,v 1.10.1.1 2017/04/19 17:20:42 roberto Exp $ ** Coroutine Library ** See Copyright Notice in lua.h */ @@ -75,7 +75,7 @@ static int luaB_auxwrap (lua_State *L) { lua_State *co = lua_tothread(L, lua_upvalueindex(1)); int r = auxresume(L, co, lua_gettop(L)); if (r < 0) { - if (lua_isstring(L, -1)) { /* error object is a string? */ + if (lua_type(L, -1) == LUA_TSTRING) { /* error object is a string? */ luaL_where(L, 1); /* add extra info */ lua_insert(L, -2); lua_concat(L, 2); |