summaryrefslogtreecommitdiffstats
path: root/profile-widget
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2016-03-09 20:09:33 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-03-09 21:50:26 -0800
commit28100e8b7eff248b7e5c0ddb3a043c1056d1772e (patch)
tree8531fb27d3ffba3ce0c7d624975fd100b989ee1a /profile-widget
parent4156bc36512ed2703b1d8566c77b060072922451 (diff)
downloadsubsurface-28100e8b7eff248b7e5c0ddb3a043c1056d1772e.tar.gz
Clean up signedness confusion in diveprofileitem.cpp
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'profile-widget')
-rw-r--r--profile-widget/diveprofileitem.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/profile-widget/diveprofileitem.cpp b/profile-widget/diveprofileitem.cpp
index 797984bd2..022616ef1 100644
--- a/profile-widget/diveprofileitem.cpp
+++ b/profile-widget/diveprofileitem.cpp
@@ -666,7 +666,7 @@ void DiveGasPressureItem::modelDataChanged(const QModelIndex &topLeft, const QMo
if (displayed_dive.dc.divemode == CCR)
o2mbar = GET_O2CYLINDER_PRESSURE(entry);
- if (entry->cylinderindex != last_index) {
+ if ((int)entry->cylinderindex != last_index) {
polygons.append(QPolygonF()); // this is the polygon that will be actually drawn on screen.
last_index = entry->cylinderindex;
}
@@ -742,7 +742,7 @@ void DiveGasPressureItem::modelDataChanged(const QModelIndex &topLeft, const QMo
if (!mbar)
continue;
- if (cyl != entry->cylinderindex) { // Pressure value near the left hand edge of the profile - other cylinders:
+ if (cyl != (int)entry->cylinderindex) { // Pressure value near the left hand edge of the profile - other cylinders:
cyl = entry->cylinderindex; // For each other cylinder, write the gas lable and pressure
if (!seen_cyl[cyl]) {
plotPressureValue(mbar, entry->sec, alignVar, print_y_offset[cyl][1]);