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>
This commit is contained in:
Berthold Stoeger 2017-11-18 21:26:04 +01:00 committed by Lubomir I. Ivanov
parent 1f651a7b83
commit f8fcd65bc4

View file

@ -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;