projects/aports·blob master · refs

13 lines · 396 B

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