diff options
Diffstat (limited to 'libs/nixio/src')
-rw-r--r-- | libs/nixio/src/file.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/nixio/src/file.c b/libs/nixio/src/file.c index 13a40c499..7b65abdc1 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; } } |