aboutsummaryrefslogtreecommitdiff
path: root/src/udp.c
diff options
context:
space:
mode:
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