diff --git a/dromozoa-multi-1.3-1.rockspec b/dromozoa-multi-1.4-1.rockspec similarity index 93% rename from dromozoa-multi-1.3-1.rockspec rename to dromozoa-multi-1.4-1.rockspec index 60ea2aa..5e1690f 100644 --- a/dromozoa-multi-1.3-1.rockspec +++ b/dromozoa-multi-1.4-1.rockspec @@ -1,8 +1,8 @@ rockspec_format = "3.0" package = "dromozoa-multi" -version = "1.3-1" +version = "1.4-1" source = { - url = "https://github.com/dromozoa/dromozoa-multi/releases/download/v1.3/dromozoa-multi-1.3.tar.gz"; + url = "https://github.com/dromozoa/dromozoa-multi/releases/download/v1.4/dromozoa-multi-1.4.tar.gz"; } description = { summary = "Multiple Lua states and native threads"; diff --git a/thread.cpp b/thread.cpp index 1ec8b4f..aa407b6 100644 --- a/thread.cpp +++ b/thread.cpp @@ -67,10 +67,12 @@ namespace dromozoa { break; case LUA_TLIGHTUSERDATA: lua_pushlightuserdata(that->get(), lua_touserdata(L, i)); + ++n; break; default: lua_pop(that->get(), n); luaL_argerror(L, i, "nil/number/boolean/string expected"); + return; } } luaX_push(that->get(), n); diff --git a/version.m4 b/version.m4 index e9609b4..039e993 100644 --- a/version.m4 +++ b/version.m4 @@ -1 +1 @@ -m4_define(DROMOZOA_MULTI_VERSION,1.3) +m4_define(DROMOZOA_MULTI_VERSION,1.4)