diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-01-27 21:21:37 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-01-27 21:21:37 +0900 |
| commit | b49a558c4ef5ac4e45923ca36b5d950a896d255d (patch) | |
| tree | 9ce228039da62a575476848fcaf9d8096e6d8d2f /src/HttpSkipResponseCommand.cc | |
| parent | 43dd3861a5f3894b5249a55dbef47a91fe126f4a (diff) | |
Fixed compile error on 32bit systems.
Diffstat (limited to 'src/HttpSkipResponseCommand.cc')
| -rw-r--r-- | src/HttpSkipResponseCommand.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/HttpSkipResponseCommand.cc b/src/HttpSkipResponseCommand.cc index bf6db6e3..d9824f0f 100644 --- a/src/HttpSkipResponseCommand.cc +++ b/src/HttpSkipResponseCommand.cc @@ -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(); } |
