summaryrefslogtreecommitdiffhomepage
path: root/libs/nixio/src/io.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2009-10-26 04:52:07 +0000
committerFelix Fietkau <nbd@openwrt.org>2009-10-26 04:52:07 +0000
commit64d9a00a9934cd06401f4b9ec2e14950a4423a87 (patch)
tree99f8a9f96407f1420e36a37f02a000346dc6ca81 /libs/nixio/src/io.c
parent2181825db596a12d23f56fa8fbfebd94f99b13c4 (diff)
nixio: store stats and other number information as integer, which works better when lua number support is downgraded from double to float
Diffstat (limited to 'libs/nixio/src/io.c')
-rw-r--r--libs/nixio/src/io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/nixio/src/io.c b/libs/nixio/src/io.c
index 8b8f25b424..47fa0babb3 100644
--- a/libs/nixio/src/io.c
+++ b/libs/nixio/src/io.c
@@ -141,7 +141,7 @@ static int nixio_sock__recvfrom(lua_State *L, int from) {
nixio_addr naddr;
if (!nixio__addr_parse(&naddr, (struct sockaddr *)&addrobj)) {
lua_pushstring(L, naddr.host);
- lua_pushnumber(L, naddr.port);
+ lua_pushinteger(L, naddr.port);
return 3;
} else {
return 1;