mirror of
https://github.com/aria2/aria2.git
synced 2026-04-02 10:55:00 +00:00
Replaced uint64_t with off_t or int64_t.
Since off_t is int64_t with LFS, we cannot take advantage of extra capacity of uint64_t.
This commit is contained in:
@@ -37,7 +37,7 @@ void HttpHeaderTest::testGetRange()
|
||||
|
||||
CPPUNIT_ASSERT_EQUAL((off_t)9223372036854775800LL, range->getStartByte());
|
||||
CPPUNIT_ASSERT_EQUAL((off_t)9223372036854775801LL, range->getEndByte());
|
||||
CPPUNIT_ASSERT_EQUAL((uint64_t)9223372036854775807ULL, range->getEntityLength());
|
||||
CPPUNIT_ASSERT_EQUAL((off_t)9223372036854775807LL, range->getEntityLength());
|
||||
}
|
||||
{
|
||||
HttpHeader httpHeader;
|
||||
@@ -48,7 +48,7 @@ void HttpHeaderTest::testGetRange()
|
||||
|
||||
CPPUNIT_ASSERT_EQUAL((off_t)9223372036854775800LL, range->getStartByte());
|
||||
CPPUNIT_ASSERT_EQUAL((off_t)9223372036854775801LL, range->getEndByte());
|
||||
CPPUNIT_ASSERT_EQUAL((uint64_t)9223372036854775807ULL, range->getEntityLength());
|
||||
CPPUNIT_ASSERT_EQUAL((off_t)9223372036854775807LL, range->getEntityLength());
|
||||
}
|
||||
{
|
||||
HttpHeader httpHeader;
|
||||
@@ -58,7 +58,7 @@ void HttpHeaderTest::testGetRange()
|
||||
|
||||
CPPUNIT_ASSERT_EQUAL((off_t)0, range->getStartByte());
|
||||
CPPUNIT_ASSERT_EQUAL((off_t)0, range->getEndByte());
|
||||
CPPUNIT_ASSERT_EQUAL((uint64_t)0, range->getEntityLength());
|
||||
CPPUNIT_ASSERT_EQUAL((off_t)0, range->getEntityLength());
|
||||
}
|
||||
{
|
||||
HttpHeader httpHeader;
|
||||
@@ -68,7 +68,7 @@ void HttpHeaderTest::testGetRange()
|
||||
|
||||
CPPUNIT_ASSERT_EQUAL((off_t)0, range->getStartByte());
|
||||
CPPUNIT_ASSERT_EQUAL((off_t)0, range->getEndByte());
|
||||
CPPUNIT_ASSERT_EQUAL((uint64_t)0, range->getEntityLength());
|
||||
CPPUNIT_ASSERT_EQUAL((off_t)0, range->getEntityLength());
|
||||
}
|
||||
{
|
||||
HttpHeader httpHeader;
|
||||
@@ -78,7 +78,7 @@ void HttpHeaderTest::testGetRange()
|
||||
|
||||
CPPUNIT_ASSERT_EQUAL((off_t)0, range->getStartByte());
|
||||
CPPUNIT_ASSERT_EQUAL((off_t)0, range->getEndByte());
|
||||
CPPUNIT_ASSERT_EQUAL((uint64_t)0, range->getEntityLength());
|
||||
CPPUNIT_ASSERT_EQUAL((off_t)0, range->getEntityLength());
|
||||
}
|
||||
{
|
||||
HttpHeader httpHeader;
|
||||
@@ -88,7 +88,7 @@ void HttpHeaderTest::testGetRange()
|
||||
|
||||
CPPUNIT_ASSERT_EQUAL((off_t)0, range->getStartByte());
|
||||
CPPUNIT_ASSERT_EQUAL((off_t)0, range->getEndByte());
|
||||
CPPUNIT_ASSERT_EQUAL((uint64_t)0, range->getEntityLength());
|
||||
CPPUNIT_ASSERT_EQUAL((off_t)0, range->getEntityLength());
|
||||
}
|
||||
{
|
||||
HttpHeader httpHeader;
|
||||
@@ -98,7 +98,7 @@ void HttpHeaderTest::testGetRange()
|
||||
|
||||
CPPUNIT_ASSERT_EQUAL((off_t)0, range->getStartByte());
|
||||
CPPUNIT_ASSERT_EQUAL((off_t)0, range->getEndByte());
|
||||
CPPUNIT_ASSERT_EQUAL((uint64_t)0, range->getEntityLength());
|
||||
CPPUNIT_ASSERT_EQUAL((off_t)0, range->getEntityLength());
|
||||
}
|
||||
{
|
||||
HttpHeader httpHeader;
|
||||
|
||||
Reference in New Issue
Block a user