Browse Source

fix compiler warning: suggest parentheses around && within || in cachedb

tags/debian/0.7.25
David Kalnischkies 11 years ago
parent
commit
2a5f8389bd
1 changed files with 5 additions and 5 deletions
  1. +5
    -5
      ftparchive/cachedb.cc

+ 5
- 5
ftparchive/cachedb.cc View File

@@ -182,11 +182,11 @@ bool CacheDB::GetFileInfo(string FileName, bool DoControl, bool DoContents,
Stats.Bytes += CurStat.FileSize;
Stats.Packages++;

if (DoControl && LoadControl() == false
|| DoContents && LoadContents(GenContentsOnly) == false
|| DoMD5 && GetMD5(false) == false
|| DoSHA1 && GetSHA1(false) == false
|| DoSHA256 && GetSHA256(false) == false)
if ((DoControl && LoadControl() == false)
|| (DoContents && LoadContents(GenContentsOnly) == false)
|| (DoMD5 && GetMD5(false) == false)
|| (DoSHA1 && GetSHA1(false) == false)
|| (DoSHA256 && GetSHA256(false) == false))
{
delete Fd;
Fd = NULL;


Loading…
Cancel
Save