mirror of https://github.com/aria2/aria2
2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Fixed wrong argument passing to BitfieldMan::isBitSet() * src/DefaultPieceStorage.ccpull/1/head
parent
8af9c60ebf
commit
817aee5dc8
|
@ -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>
|
2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
|
||||||
|
|
||||||
Initialized _directIOAllowed
|
Initialized _directIOAllowed
|
||||||
|
|
|
@ -189,7 +189,7 @@ bool DefaultPieceStorage::getMissingFastPieceIndex(size_t& index,
|
||||||
bitfieldMan->getTotalLength());
|
bitfieldMan->getTotalLength());
|
||||||
for(std::deque<size_t>::const_iterator itr = peer->getPeerAllowedIndexSet().begin();
|
for(std::deque<size_t>::const_iterator itr = peer->getPeerAllowedIndexSet().begin();
|
||||||
itr != peer->getPeerAllowedIndexSet().end(); itr++) {
|
itr != peer->getPeerAllowedIndexSet().end(); itr++) {
|
||||||
if(!bitfieldMan->isBitSet(index) && peer->hasPiece(*itr)) {
|
if(!bitfieldMan->isBitSet(*itr) && peer->hasPiece(*itr)) {
|
||||||
tempBitfield.setBit(*itr);
|
tempBitfield.setBit(*itr);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue