summaryrefslogtreecommitdiffhomepage
path: root/libs/nixio/src/file.c
diff options
context:
space:
mode:
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;
}
}