From: "Lubomir I. Ivanov" <neolit...@gmail.com>

duration_t holds unsinged values, offset_t holds signed values.

Signed-off-by: Lubomir I. Ivanov <neolit...@gmail.com>
---

not sure about this one...
can a picture offset be negative anyhow?
---
 qt-ui/divelogexportdialog.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/qt-ui/divelogexportdialog.cpp b/qt-ui/divelogexportdialog.cpp
index 4e00b4e..557fa83 100644
--- a/qt-ui/divelogexportdialog.cpp
+++ b/qt-ui/divelogexportdialog.cpp
@@ -334,7 +334,7 @@ void DiveLogExportDialog::export_depths(const char 
*filename, const bool selecte
                        int n = dive->dc.samples;
                        struct sample *s = dive->dc.sample;
                        depth.mm = 0;
-                       while (--n >= 0 && s->time.seconds <= 
picture->offset.seconds) {
+                       while (--n >= 0 && s->time.seconds <= 
(uint32_t)picture->offset.seconds) {
                                depth.mm = s->depth.mm;
                                s++;
                        }
-- 
1.7.11.msysgit.0

_______________________________________________
subsurface mailing list
subsurface@subsurface-divelog.org
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface

Reply via email to