aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_config.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lua/lua_config.c')
-rw-r--r--src/lua/lua_config.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/lua/lua_config.c b/src/lua/lua_config.c
index d7af3956f..815b09e63 100644
--- a/src/lua/lua_config.c
+++ b/src/lua/lua_config.c
@@ -939,7 +939,7 @@ lua_config_get_all_opt (lua_State * L)
i = 1;
LL_FOREACH (obj, cur) {
- lua_pushnumber (L, i++);
+ lua_pushinteger (L, i++);
ucl_object_push_lua (L, cur, true);
lua_settable (L, -3);
}
@@ -1735,7 +1735,7 @@ lua_config_register_symbol (lua_State * L)
return luaL_error (L, "invalid arguments");
}
- lua_pushnumber (L, ret);
+ lua_pushinteger (L, ret);
return 1;
}
@@ -1809,7 +1809,7 @@ lua_config_register_symbols (lua_State *L)
}
}
- lua_pushnumber (L, ret);
+ lua_pushinteger (L, ret);
return 1;
}
@@ -1838,7 +1838,7 @@ lua_config_register_virtual_symbol (lua_State * L)
}
}
- lua_pushnumber (L, ret);
+ lua_pushinteger (L, ret);
return 1;
}
@@ -1879,7 +1879,7 @@ lua_config_register_callback_symbol (lua_State * L)
lua_type (L, top + 1) == LUA_TSTRING);
}
- lua_pushnumber (L, ret);
+ lua_pushinteger (L, ret);
return 1;
}
@@ -1922,7 +1922,7 @@ lua_config_register_callback_symbol_priority (lua_State * L)
lua_type (L, top + 2) == LUA_TSTRING);
}
- lua_pushnumber (L, ret);
+ lua_pushinteger (L, ret);
return 1;
}
@@ -2912,7 +2912,7 @@ lua_config_get_symbols_count (lua_State *L)
return luaL_error (L, "invalid arguments");
}
- lua_pushnumber (L, res);
+ lua_pushinteger (L, res);
return 1;
}
@@ -3092,7 +3092,7 @@ lua_config_get_symbol_stat (lua_State *L)
lua_pushnumber (L, tm);
lua_settable (L, -3);
lua_pushstring (L, "hits");
- lua_pushnumber (L, hits);
+ lua_pushinteger (L, hits);
lua_settable (L, -3);
}
}