summaryrefslogtreecommitdiffhomepage
path: root/libs/nixio/src/file.c
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2009-02-15 13:59:30 +0000
committerSteven Barth <steven@midlink.org>2009-02-15 13:59:30 +0000
commit695361877cd094b1d8d15f3f4d8018eef2bc7b03 (patch)
treed7dbf86397b92e8fd656c07154128dcfd1ec63b1 /libs/nixio/src/file.c
parent42793d87999519350eed6e0d4d44a0629ccbf4d4 (diff)
More nixio fixes
Diffstat (limited to 'libs/nixio/src/file.c')
-rw-r--r--libs/nixio/src/file.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/nixio/src/file.c b/libs/nixio/src/file.c
index 13a40c4999..7b65abdc12 100644
--- a/libs/nixio/src/file.c
+++ b/libs/nixio/src/file.c
@@ -76,7 +76,8 @@ static int nixio_file_write(lua_State *L) {
if (written < 0) {
return nixio__perror(L);
} else {
- return written;
+ lua_pushnumber(L, written);
+ return 1;
}
}