diff options
author | Diego Nehab <diego@impa.br> | 2012-12-11 17:43:49 -0200 |
---|---|---|
committer | Diego Nehab <diego@impa.br> | 2012-12-11 17:43:49 -0200 |
commit | 72a5347f97b3f158431d4181109db3086a8a2953 (patch) | |
tree | 530f7ab086627154fc8693c939145c6d815de6df /src/udp.c | |
parent | 618ce43ee3950b80aca1fde0a5b12e6e13627f1b (diff) | |
download | luasocket-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 | ||