From 528292d05025d8f0e6e8b33610dacf13002619f8 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 17 Oct 2017 19:24:21 +0100 Subject: [PATCH] [Minor] Fix lua_text processing in lua_util_tokenize_text --- src/lua/lua_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lua/lua_util.c b/src/lua/lua_util.c index 2e98d64fd..30d0f90d5 100644 --- a/src/lua/lua_util.c +++ b/src/lua/lua_util.c @@ -923,7 +923,7 @@ lua_util_tokenize_text (lua_State *L) if (lua_type (L, 1) == LUA_TSTRING) { in = luaL_checklstring (L, 1, &len); } - else if (lua_type (L, 1) == LUA_TTABLE) { + else if (lua_type (L, 1) == LUA_TUSERDATA) { t = lua_check_text (L, 1); if (t) { -- 2.39.5