]> git.saurik.com Git - apt.git/commitdiff
fix compiler warning: suggest parentheses around && within || in cachedb
authorDavid Kalnischkies <kalnischkies@gmail.com>
Wed, 14 Oct 2009 05:48:24 +0000 (07:48 +0200)
committerDavid Kalnischkies <kalnischkies@gmail.com>
Wed, 14 Oct 2009 05:48:24 +0000 (07:48 +0200)
ftparchive/cachedb.cc

index ff9a92d3264f2f78013893949e9ce944e1c07945..dfda827b6b0b362af8218f2b9d359d1b88876587 100644 (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;