From 38908616d0e08b72e6b00d18490ed917fa643e4f Mon Sep 17 00:00:00 2001 From: Li Jin Date: Tue, 17 Aug 2021 23:09:27 +0800 Subject: reset Yuescript version since it's a minor version with new feature. update Lua lib. --- src/3rdParty/lua/lauxlib.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/3rdParty/lua/lauxlib.c') diff --git a/src/3rdParty/lua/lauxlib.c b/src/3rdParty/lua/lauxlib.c index 94835ef..8ed1da1 100644 --- a/src/3rdParty/lua/lauxlib.c +++ b/src/3rdParty/lua/lauxlib.c @@ -881,6 +881,7 @@ LUALIB_API lua_Integer luaL_len (lua_State *L, int idx) { LUALIB_API const char *luaL_tolstring (lua_State *L, int idx, size_t *len) { + idx = lua_absindex(L,idx); if (luaL_callmeta(L, idx, "__tostring")) { /* metafield? */ if (!lua_isstring(L, -1)) luaL_error(L, "'__tostring' must return a string"); -- cgit v1.2.3-55-g6feb