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;