From: David Kalnischkies Date: Wed, 14 Oct 2009 05:48:24 +0000 (+0200) Subject: fix compiler warning: suggest parentheses around && within || in cachedb X-Git-Tag: 0.7.25~8^2~7^2~3 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/2a5f8389bdc1a3f482a3a8e105010ad9ae9e12c4 fix compiler warning: suggest parentheses around && within || in cachedb --- diff --git a/ftparchive/cachedb.cc b/ftparchive/cachedb.cc index ff9a92d32..dfda827b6 100644 --- a/ftparchive/cachedb.cc +++ b/ftparchive/cachedb.cc @@ -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;