mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
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:
parent
1f651a7b83
commit
f8fcd65bc4
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue