diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2015-06-21 18:04:30 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2015-06-21 19:29:54 +0900 |
| commit | 318c804504e32b7a0bbdbb35336d2e918000d80a (patch) | |
| tree | fad396aee04c44a29ee79b33e1675db2275146c0 /src/GZipFile.cc | |
| parent | 8ba9b0474747185708a25943fb6d2f97b3d9b17f (diff) | |
Use user-defined literal for k, m, and g (powers of 1024)
Diffstat (limited to 'src/GZipFile.cc')
| -rw-r--r-- | src/GZipFile.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/GZipFile.cc b/src/GZipFile.cc index ed2e4920..f669b185 100644 --- a/src/GZipFile.cc +++ b/src/GZipFile.cc @@ -45,7 +45,7 @@ namespace aria2 { GZipFile::GZipFile(const char* filename, const char* mode) : fp_(nullptr), - buflen_(1024), buf_(reinterpret_cast<char*>(malloc(buflen_))) + buflen_(1_k), buf_(reinterpret_cast<char*>(malloc(buflen_))) { FILE* fp = #ifdef __MINGW32__ |
