summaryrefslogtreecommitdiff
path: root/src/DefaultBtProgressInfoFile.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2009-07-22 13:20:47 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2009-07-22 13:20:47 +0000
commita01a3605c7594bb4c837033156df30596d28f05f (patch)
treeb1551b6c3bc432b07c26fe1edfbde9790c1c2e37 /src/DefaultBtProgressInfoFile.cc
parentdf8938d51e6bb9019826f1d84d56c388b340c733 (diff)
2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Fixed compiler warning * src/DefaultBtProgressInfoFile.cc
Diffstat (limited to 'src/DefaultBtProgressInfoFile.cc')
-rw-r--r--src/DefaultBtProgressInfoFile.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/DefaultBtProgressInfoFile.cc b/src/DefaultBtProgressInfoFile.cc
index ce93ad9f..dcb9c454 100644
--- a/src/DefaultBtProgressInfoFile.cc
+++ b/src/DefaultBtProgressInfoFile.cc
@@ -258,7 +258,7 @@ void DefaultBtProgressInfoFile::load()
array_ptr<unsigned char> savedInfoHash(new unsigned char[infoHashLength]);
in.read(reinterpret_cast<char*>
(static_cast<unsigned char*>(savedInfoHash)), infoHashLength);
- CHECK_STREAM(in, infoHashLength);
+ CHECK_STREAM(in, static_cast<int>(infoHashLength));
if(infoHashCheckEnabled) {
const unsigned char* infoHash = bittorrent::getInfoHash(_dctx);
if(infoHashLength != INFO_HASH_LENGTH ||
@@ -321,7 +321,7 @@ void DefaultBtProgressInfoFile::load()
array_ptr<unsigned char> savedBitfield(new unsigned char[bitfieldLength]);
in.read(reinterpret_cast<char*>
(static_cast<unsigned char*>(savedBitfield)), bitfieldLength);
- CHECK_STREAM(in, bitfieldLength);
+ CHECK_STREAM(in, static_cast<int>(bitfieldLength));
if(pieceLength == _dctx->getPieceLength()) {
_pieceStorage->setBitfield(savedBitfield, bitfieldLength);
@@ -372,7 +372,7 @@ void DefaultBtProgressInfoFile::load()
(new unsigned char[bitfieldLength]);
in.read(reinterpret_cast<char*>
(static_cast<unsigned char*>(pieceBitfield)), bitfieldLength);
- CHECK_STREAM(in, bitfieldLength);
+ CHECK_STREAM(in, static_cast<int>(bitfieldLength));
piece->setBitfield(pieceBitfield, bitfieldLength);
#ifdef ENABLE_MESSAGE_DIGEST