aboutsummaryrefslogtreecommitdiff
path: root/src/udp.c
diff options
context:
space:
mode:
authorDiego Nehab <diego@impa.br>2012-12-11 17:43:49 -0200
committerDiego Nehab <diego@impa.br>2012-12-11 17:43:49 -0200
commit72a5347f97b3f158431d4181109db3086a8a2953 (patch)
tree530f7ab086627154fc8693c939145c6d815de6df /src/udp.c
parent618ce43ee3950b80aca1fde0a5b12e6e13627f1b (diff)
downloadluasocket-72a5347f97b3f158431d4181109db3086a8a2953.tar.gz
luasocket-72a5347f97b3f158431d4181109db3086a8a2953.tar.bz2
luasocket-72a5347f97b3f158431d4181109db3086a8a2953.zip
Remove warnings and fix makefile for Win32.
Diffstat (limited to 'src/udp.c')
-rw-r--r--src/udp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/udp.c b/src/udp.c
index 4cd9a41..8e14fac 100644
--- a/src/udp.c
+++ b/src/udp.c
@@ -139,7 +139,7 @@ static int meth_send(lua_State *L) {
139 lua_pushstring(L, udp_strerror(err)); 139 lua_pushstring(L, udp_strerror(err));
140 return 2; 140 return 2;
141 } 141 }
142 lua_pushnumber(L, sent); 142 lua_pushnumber(L, (lua_Number) sent);
143 return 1; 143 return 1;
144} 144}
145 145
@@ -189,7 +189,7 @@ static int meth_sendto(lua_State *L) {
189 lua_pushstring(L, udp_strerror(err)); 189 lua_pushstring(L, udp_strerror(err));
190 return 2; 190 return 2;
191 } 191 }
192 lua_pushnumber(L, sent); 192 lua_pushnumber(L, (lua_Number) sent);
193 return 1; 193 return 1;
194} 194}
195 195