Make DownloadHandle::getNumPieces() return int

pull/89/head
Tatsuhiro Tsujikawa 2013-05-10 21:52:46 +09:00
parent 1a953d5f93
commit 9f4f888e39
2 changed files with 3 additions and 3 deletions

View File

@ -527,7 +527,7 @@ struct RequestGroupDH : public DownloadHandle {
const SharedHandle<DownloadContext>& dctx = group->getDownloadContext();
return dctx->getPieceLength();
}
virtual size_t getNumPieces()
virtual int getNumPieces()
{
return group->getDownloadContext()->getNumPieces();
}
@ -631,7 +631,7 @@ struct DownloadResultDH : public DownloadHandle {
{
return dr->pieceLength;
}
virtual size_t getNumPieces()
virtual int getNumPieces()
{
return dr->numPieces;
}

View File

@ -472,7 +472,7 @@ public:
/**
* Returns the number of pieces.
*/
virtual size_t getNumPieces() = 0;
virtual int getNumPieces() = 0;
/**
* Returns the number of peers/servers the client has connected to.
*/