diff options
author | Warner Losh <imp@FreeBSD.org> | 2017-11-28 22:55:31 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2017-11-28 22:55:31 +0000 |
commit | c07e635a743de50fac64b715c08cd78aa51077c5 (patch) | |
tree | 863f22fc969cf46809d8d43e637381729edbe9ef /src/lcorolib.c | |
parent | 52bff0d770d4359f702d9922b8608ad23351ea89 (diff) |
Notes
Diffstat (limited to 'src/lcorolib.c')
-rw-r--r-- | src/lcorolib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lcorolib.c b/src/lcorolib.c index 0c0b7fa6b31c5..2303429e7bb3d 100644 --- a/src/lcorolib.c +++ b/src/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 2016/04/11 19:19:55 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); |