projects
/
oweals
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1738edd
)
libs/lmo: check for integer, not number in lmo.archive.get()
author
Jo-Philipp Wich
<jow@openwrt.org>
Sun, 19 Jul 2009 16:12:26 +0000
(16:12 +0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Sun, 19 Jul 2009 16:12:26 +0000
(16:12 +0000)
libs/lmo/src/lmo_lualib.c
patch
|
blob
|
history
diff --git
a/libs/lmo/src/lmo_lualib.c
b/libs/lmo/src/lmo_lualib.c
index 30e91b38059aeb562fc266b19fc0222f9b0d82bb..676f788d28ed52fa4dbaac1a0912563b7472c638 100644
(file)
--- 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_check
numb
er(L, 2);
+ uint32_t hash = (uint32_t) luaL_check
integ
er(L, 2);
return _lmo_lookup(L, *ar, hash);
}