mirror of
https://github.com/aria2/aria2.git
synced 2025-04-05 13:37:40 +03:00
Use user-defined literal for k, m, and g (powers of 1024)
This commit is contained in:
parent
8ba9b04747
commit
318c804504
99 changed files with 482 additions and 453 deletions
|
@ -61,7 +61,7 @@ CPPUNIT_TEST_SUITE_REGISTRATION(GZipDecodingStreamFilterTest);
|
|||
|
||||
void GZipDecodingStreamFilterTest::testTransform()
|
||||
{
|
||||
unsigned char buf[4096];
|
||||
unsigned char buf[4_k];
|
||||
std::ifstream in(A2_TEST_DIR"/gzip_decode_test.gz", std::ios::binary);
|
||||
while(in) {
|
||||
in.read(reinterpret_cast<char*>(buf), sizeof(buf));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue