aports/main/lua-mosquitto/checkinteger.patch
Natanael Copa 1579acf67a main/lua-mosquitto: fix loading with lua 5.3
upstream issue: https://github.com/flukso/lua-mosquitto/issues/32

add check that tests that we can load the module and print the version
2022-04-04 10:56:05 +02:00

13 lines
396 B
Diff

diff --git a/lua-mosquitto.c b/lua-mosquitto.c
index cb80452..2eaef28 100644
--- a/lua-mosquitto.c
+++ b/lua-mosquitto.c
@@ -539,7 +539,7 @@ static int ctx_threaded_set(lua_State *L)
static int ctx_option(lua_State *L)
{
ctx_t *ctx = ctx_check(L, 1);
- enum mosq_opt_t option = luaL_checkint(L, 2);
+ enum mosq_opt_t option = luaL_checkinteger(L, 2);
int type = lua_type(L, 3);
int rc;