From 429d0f307150409d1d541972262579724f62c1d5 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 15 Mar 2009 16:14:16 -0400 Subject: [PATCH] Portability - Fedora 9 - Compiler pointed out an expression (a || b && c) that clearly needs parentheses around (a || b). Gcc on other OSes don't mention this. --- src/report.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/report.cpp b/src/report.cpp index 7b540b2d5..44752327a 100644 --- a/src/report.cpp +++ b/src/report.cpp @@ -934,7 +934,7 @@ std::string handleReportHistory (TDB& tdb, T& task, Config& conf) } table.addCell (row, 5, net); - if (conf.get ("color", true) || conf.get (std::string ("_forcecolor"), false) && net) + if ((conf.get ("color", true) || conf.get (std::string ("_forcecolor"), false)) && net) table.setCellFg (row, 5, net > 0 ? Text::red: Text::green); }