Fixed the linker warning about conflicting libraries in Visual C++ projects
Fixed a minor warning in UdpSocket.cpp git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1497 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
parent
a6b9dbfd39
commit
af22a15df3
6 changed files with 11 additions and 2 deletions
|
@ -59,7 +59,7 @@ myPixelsFlipped (false)
|
|||
////////////////////////////////////////////////////////////
|
||||
/// Copy constructor
|
||||
////////////////////////////////////////////////////////////
|
||||
Image::Image(const Image& copy) :
|
||||
Image::Image(const Image& copy) :
|
||||
Resource<Image>()
|
||||
{
|
||||
// First make sure that the source image is up-to-date
|
||||
|
|
|
@ -107,7 +107,7 @@ Socket::Status UdpSocket::Send(const char* data, std::size_t size, const IpAddre
|
|||
sockaddr_in address = priv::SocketImpl::CreateAddress(remoteAddress.ToInteger(), remotePort);
|
||||
|
||||
// Send the data (unlike TCP, all the data is always sent in one call)
|
||||
int sent = sendto(GetHandle(), data, size, 0, reinterpret_cast<sockaddr*>(&address), sizeof(address));
|
||||
int sent = sendto(GetHandle(), data, static_cast<int>(size), 0, reinterpret_cast<sockaddr*>(&address), sizeof(address));
|
||||
|
||||
// Check for errors
|
||||
if (sent < 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue