Fixed compiling on 32 bits machines.
This commit is contained in:
parent
35e369f348
commit
3ac6ae0704
1 changed files with 2 additions and 2 deletions
|
@ -458,9 +458,9 @@ void Socket::Connection::SendNow(const char * data, size_t len){
|
||||||
while (upbuffer.size() > 0 && connected()){
|
while (upbuffer.size() > 0 && connected()){
|
||||||
iwrite(upbuffer.get());
|
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()){
|
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);}
|
if (!bing){setBlocking(false);}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue