diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2008-03-15 04:19:46 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2008-03-15 04:19:46 +0000 |
| commit | 538a8fcfe7d56e2d3bea25599d015df94ab9e7e6 (patch) | |
| tree | 174aba60cd077961b78b937b1ad1904c4c8c4857 /src/DefaultBtProgressInfoFile.cc | |
| parent | 8dacfe45b86f262da482e41441db49363b41acb9 (diff) | |
2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Fixed compilation error with g++-4.3
Diffstat (limited to 'src/DefaultBtProgressInfoFile.cc')
| -rw-r--r-- | src/DefaultBtProgressInfoFile.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/DefaultBtProgressInfoFile.cc b/src/DefaultBtProgressInfoFile.cc index 85158e78..d5c3c939 100644 --- a/src/DefaultBtProgressInfoFile.cc +++ b/src/DefaultBtProgressInfoFile.cc @@ -53,6 +53,7 @@ #include "DownloadFailureException.h" #include <fstream> #include <cerrno> +#include <cstring> namespace aria2 { @@ -182,7 +183,7 @@ void DefaultBtProgressInfoFile::load() uint32_t infoHashLength; in.read(reinterpret_cast<char*>(&infoHashLength), sizeof(infoHashLength)); - if(infoHashLength < 0 || infoHashLength == 0 && infoHashCheckEnabled) { + if((infoHashLength < 0) || ((infoHashLength == 0) && infoHashCheckEnabled)) { throw new DlAbortEx("Invalid info hash length: %d", infoHashLength); } if(infoHashLength > 0) { |
