mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
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:
parent
4baf30cf9c
commit
429d0f3071
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue