Sophie

Sophie

distrib > Mandriva > mes5 > x86_64 > by-pkgid > e52da96476a10f3408ac35f8a69b1b1d > files > 4

aria2-0.15.3-0.20080918.3mdv2009.0.src.rpm

Index: src/ActivePeerConnectionCommand.cc
===================================================================
--- src/ActivePeerConnectionCommand.cc	(revision 51)
+++ src/ActivePeerConnectionCommand.cc	(working copy)
@@ -90,7 +90,7 @@
 	 btRuntime->lessThanMinPeers()))) {
       size_t numConnection = pieceStorage->downloadFinished() ?
 	std::min(_numNewConnection,
-		 BtRuntime::MAX_PEERS-btRuntime->getConnections()) :
+		 (size_t) BtRuntime::MAX_PEERS-btRuntime->getConnections()) :
 	_numNewConnection;
       for(size_t numAdd = numConnection;
 	  numAdd > 0 && peerStorage->isPeerAvailable(); --numAdd) {