From 64d9a00a9934cd06401f4b9ec2e14950a4423a87 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 26 Oct 2009 04:52:07 +0000 Subject: nixio: store stats and other number information as integer, which works better when lua number support is downgraded from double to float --- libs/nixio/src/splice.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libs/nixio/src/splice.c') diff --git a/libs/nixio/src/splice.c b/libs/nixio/src/splice.c index fe5666163..8b4f2a1ac 100644 --- a/libs/nixio/src/splice.c +++ b/libs/nixio/src/splice.c @@ -90,7 +90,7 @@ static int nixio_splice(lua_State *L) { return nixio__perror(L); } - lua_pushnumber(L, spliced); + lua_pushinteger(L, spliced); return 1; } @@ -151,7 +151,7 @@ static int nixio_sendfile(lua_State *L) { } #endif - lua_pushnumber(L, spliced); + lua_pushinteger(L, spliced); return 1; } -- cgit v1.2.3