mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-01 06:30:26 +00:00
When calculating the maximum of unsigned values, use unsigned variable
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
eaf6d56487
commit
d211bc55be
1 changed files with 1 additions and 1 deletions
2
dive.c
2
dive.c
|
@ -726,7 +726,7 @@ static void fixup_meandepth(struct dive *dive)
|
|||
static void fixup_duration(struct dive *dive)
|
||||
{
|
||||
struct divecomputer *dc;
|
||||
int duration = 0;
|
||||
unsigned int duration = 0;
|
||||
|
||||
for_each_dc(dive, dc)
|
||||
duration = MAX(duration, dc->duration.seconds);
|
||||
|
|
Loading…
Reference in a new issue