2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>

Fixed wrong argument passing to BitfieldMan::isBitSet()
	* src/DefaultPieceStorage.cc
pull/1/head
Tatsuhiro Tsujikawa 2008-08-07 14:19:40 +00:00
parent 8af9c60ebf
commit 817aee5dc8
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Fixed wrong argument passing to BitfieldMan::isBitSet()
* src/DefaultPieceStorage.cc
2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Initialized _directIOAllowed

View File

@ -189,7 +189,7 @@ bool DefaultPieceStorage::getMissingFastPieceIndex(size_t& index,
bitfieldMan->getTotalLength());
for(std::deque<size_t>::const_iterator itr = peer->getPeerAllowedIndexSet().begin();
itr != peer->getPeerAllowedIndexSet().end(); itr++) {
if(!bitfieldMan->isBitSet(index) && peer->hasPiece(*itr)) {
if(!bitfieldMan->isBitSet(*itr) && peer->hasPiece(*itr)) {
tempBitfield.setBit(*itr);
}
}