From 3ac6ae0704348c770f612f18cebfffe40de3e237 Mon Sep 17 00:00:00 2001 From: Thulinma Date: Thu, 1 May 2014 18:11:13 +0200 Subject: [PATCH] Fixed compiling on 32 bits machines. --- lib/socket.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/socket.cpp b/lib/socket.cpp index 8e7ac7ec..da5f9580 100644 --- a/lib/socket.cpp +++ b/lib/socket.cpp @@ -458,9 +458,9 @@ void Socket::Connection::SendNow(const char * data, size_t len){ while (upbuffer.size() > 0 && connected()){ iwrite(upbuffer.get()); } - unsigned int i = iwrite(data, std::min(len, 51200ul)); + unsigned int i = iwrite(data, std::min((long unsigned int)len, 51200ul)); while (i < len && connected()){ - i += iwrite(data + i, std::min(len - i, 51200ul)); + i += iwrite(data + i, std::min((long unsigned int)(len - i), 51200ul)); } if (!bing){setBlocking(false);} }