diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2017-11-18 21:26:04 +0100 |
---|---|---|
committer | Lubomir I. Ivanov <neolit123@gmail.com> | 2017-11-18 21:50:43 +0100 |
commit | f8fcd65bc4598ac150477f6caa64c617ec220982 (patch) | |
tree | 5964965942140eacbf4ffa1c6f900df7d6d2ee1a /profile-widget | |
parent | 1f651a7b839265845516d86c66493befcbe17094 (diff) | |
download | subsurface-f8fcd65bc4598ac150477f6caa64c617ec220982.tar.gz |
Prevent signed/unsigned comparison warning
Change an unsigned integer to a signed integer in profilewidget2.cpp,
because commit 1f8506c changed the definition of duration_t from
unsigned to signed.
Since this value represents the number of seconds since a dive started,
there is no possible chance of overflow problems.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'profile-widget')
-rw-r--r-- | profile-widget/profilewidget2.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/profile-widget/profilewidget2.cpp b/profile-widget/profilewidget2.cpp index cfe705f6f..e88fa0fc1 100644 --- a/profile-widget/profilewidget2.cpp +++ b/profile-widget/profilewidget2.cpp @@ -1592,7 +1592,7 @@ void ProfileWidget2::changeGas() qreal sec_val = timeAxis->valueAt(scenePos); // no gas changes before the dive starts - unsigned int seconds = (sec_val < 0.0) ? 0 : (unsigned int)sec_val; + int seconds = (sec_val < 0.0) ? 0 : (int)sec_val; // if there is a gas change at this time stamp, remove it before adding the new one struct event *gasChangeEvent = current_dc->events; |