From 2a5f8389bdc1a3f482a3a8e105010ad9ae9e12c4 Mon Sep 17 00:00:00 2001 From: David Kalnischkies Date: Wed, 14 Oct 2009 07:48:24 +0200 Subject: [PATCH] fix compiler warning: suggest parentheses around && within || in cachedb --- ftparchive/cachedb.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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; -- 2.45.2