Use int32_t for piece length instead of size_t

This commit is contained in:
Tatsuhiro Tsujikawa 2011-12-08 00:03:25 +09:00
parent 12988e5282
commit 9d15d732ed
45 changed files with 196 additions and 183 deletions

View file

@ -51,7 +51,7 @@ void PieceTest::testCompleteBlock()
void PieceTest::testGetCompletedLength()
{
size_t blockLength = 16*1024;
int32_t blockLength = 16*1024;
Piece p(0, blockLength*10+100, blockLength);
p.completeBlock(1);