Fixed compile error on 32bit systems.

pull/1/head
Tatsuhiro Tsujikawa 2011-01-27 21:21:37 +09:00
parent 43dd3861a5
commit b49a558c4e
1 changed files with 3 additions and 2 deletions

View File

@ -122,8 +122,9 @@ bool HttpSkipResponseCommand::executeInternal()
if(!eof) {
if(sinkFilterOnly_) {
if(totalLength_ > 0) {
bufSize = std::min(totalLength_-receivedBytes_,
getSocketRecvBuffer()->getBufferLength());
bufSize = std::min
(totalLength_-receivedBytes_,
static_cast<uint64_t>(getSocketRecvBuffer()->getBufferLength()));
} else {
bufSize = getSocketRecvBuffer()->getBufferLength();
}