| 1 | diff --git a/lua-mosquitto.c b/lua-mosquitto.c |
| 2 | index cb80452..2eaef28 100644 |
| 3 | |
| 4 | |
| 5 | 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 |