Fix some random compiler warnings

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2013-11-14 21:06:31 +09:00
parent ed41d5a744
commit 9c90d6790a
3 changed files with 2 additions and 4 deletions

View file

@ -1321,7 +1321,7 @@ void DivePlannerPointsModel::tanksUpdated()
divedatapoint& p = divepoints[j];
int o2 = oldGases.at(i).first;
int he = oldGases.at(i).second;
if (p.o2 == o2 && p.he == he ||
if ((p.o2 == o2 && p.he == he) ||
(is_air(p.o2, p.he) && (is_air(o2, he) || (o2 == 0 && he == 0)))) {
p.o2 = gases.at(i).first;
p.he = gases.at(i).second;