From 23afb8dcee9e88cf249b9a622c4dd727472dc78a Mon Sep 17 00:00:00 2001 From: Francois Perrad Date: Tue, 25 Apr 2017 13:27:58 +0200 Subject: [PATCH] use lua_rawlen --- src/lua.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lua.h b/src/lua.h index 6ffa16d0..2a548c5a 100644 --- a/src/lua.h +++ b/src/lua.h @@ -261,7 +261,7 @@ LUA_API void lua_setallocf (lua_State *L, lua_Alloc f, void *ud); #define lua_pushcfunction(L,f) lua_pushcclosure(L, (f), 0) -#define lua_strlen(L,i) lua_objlen(L, (i)) +#define lua_strlen(L,i) lua_rawlen(L, (i)) #define lua_isfunction(L,n) (lua_type(L, (n)) == LUA_TFUNCTION) #define lua_istable(L,n) (lua_type(L, (n)) == LUA_TTABLE)