--- aria2-0.9.0/src/AnnounceList.cc.orig6 2006-12-12 14:58:28.452570000 +0800
+++ aria2-0.9.0/src/AnnounceList.cc 2006-12-13 17:49:00.868706000 +0800
@@ -177,11 +177,15 @@
};
int AnnounceList::countStoppedAllowedTier() const {
- return count_if(tiers.begin(), tiers.end(), FindStoppedAllowedTier());
+ int result;
+ count_if(tiers.begin(), tiers.end(), FindStoppedAllowedTier(), result);
+ return result;
}
int AnnounceList::countCompletedAllowedTier() const {
- return count_if(tiers.begin(), tiers.end(), FindCompletedAllowedTier());
+ int result;
+ count_if(tiers.begin(), tiers.end(), FindCompletedAllowedTier(), result);
+ return result;
}
void AnnounceList::setCurrentTier(const AnnounceTiers::iterator& itr) {