Remove warnings and fix makefile for Win32.

This commit is contained in:
Diego Nehab 2012-12-11 17:43:49 -02:00
parent 618ce43ee3
commit 72a5347f97
9 changed files with 33 additions and 37 deletions

View file

@ -139,7 +139,7 @@ static int meth_send(lua_State *L) {
lua_pushstring(L, udp_strerror(err));
return 2;
}
lua_pushnumber(L, sent);
lua_pushnumber(L, (lua_Number) sent);
return 1;
}
@ -189,7 +189,7 @@ static int meth_sendto(lua_State *L) {
lua_pushstring(L, udp_strerror(err));
return 2;
}
lua_pushnumber(L, sent);
lua_pushnumber(L, (lua_Number) sent);
return 1;
}