summaryrefslogtreecommitdiffhomepage
path: root/libs/nixio/src
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2009-10-26 13:24:36 +0000
committerSteven Barth <steven@midlink.org>2009-10-26 13:24:36 +0000
commit6e7c32fa7d5dcd0d02aac85dbe1ed10a75a72ee9 (patch)
tree1a310ea405729af4a5844f8b8d81bbe369161b70 /libs/nixio/src
parent64d9a00a9934cd06401f4b9ec2e14950a4423a87 (diff)
Build fixes
Diffstat (limited to 'libs/nixio/src')
-rw-r--r--libs/nixio/src/fs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/nixio/src/fs.c b/libs/nixio/src/fs.c
index e21623b85..53a406081 100644
--- a/libs/nixio/src/fs.c
+++ b/libs/nixio/src/fs.c
@@ -83,7 +83,7 @@ int nixio__check_mode(lua_State *L, int idx, int def) {
if (i == 9) { /* successfully parsed */
return mode;
}
- } else if (lua_isinteger(L, idx)) {
+ } else if (lua_isnumber(L, idx)) {
int decmode = lua_tointeger(L, idx);
int s = (decmode % 10000) / 1000;
int u = (decmode % 1000) / 100;