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.
This commit is contained in:
Paul Beckingham 2009-03-15 16:14:16 -04:00
parent 4baf30cf9c
commit 429d0f3071

View file

@ -934,7 +934,7 @@ std::string handleReportHistory (TDB& tdb, T& task, Config& conf)
} }
table.addCell (row, 5, net); 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); table.setCellFg (row, 5, net > 0 ? Text::red: Text::green);
} }