mirror of
https://github.com/aria2/aria2.git
synced 2025-04-05 05:27:38 +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
|
@ -35,7 +35,7 @@ void GZipDecoderTest::testDecode()
|
|||
|
||||
std::string outfile(A2_TEST_OUT_DIR"/aria2_GZipDecoderTest_testDecode");
|
||||
|
||||
char buf[4096];
|
||||
char buf[4_k];
|
||||
std::ifstream in(A2_TEST_DIR"/gzip_decode_test.gz", std::ios::binary);
|
||||
std::ofstream out(outfile.c_str(), std::ios::binary);
|
||||
while(in) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue