summaryrefslogtreecommitdiffhomepage
path: root/libs
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-07-19 16:12:26 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-07-19 16:12:26 +0000
commit4dd0a793b6c1922bf13ad4761401122f6f65dbc3 (patch)
treebd8a5390938436dd5efee678e2a8f935736c5301 /libs
parent1738eddc7d259b2e6ddeb793f18b8fba83c961f7 (diff)
libs/lmo: check for integer, not number in lmo.archive.get()
Diffstat (limited to 'libs')
-rw-r--r--libs/lmo/src/lmo_lualib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/lmo/src/lmo_lualib.c b/libs/lmo/src/lmo_lualib.c
index 30e91b380..676f788d2 100644
--- a/libs/lmo/src/lmo_lualib.c
+++ b/libs/lmo/src/lmo_lualib.c
@@ -73,7 +73,7 @@ static int _lmo_lookup(lua_State *L, lmo_archive_t *ar, uint32_t hash) {
static int lmo_L_get(lua_State *L) {
lmo_archive_t **ar = luaL_checkudata(L, 1, LMO_ARCHIVE_META);
- uint32_t hash = (uint32_t) luaL_checknumber(L, 2);
+ uint32_t hash = (uint32_t) luaL_checkinteger(L, 2);
return _lmo_lookup(L, *ar, hash);
}