mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +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)
|
static void fixup_duration(struct dive *dive)
|
||||||
{
|
{
|
||||||
struct divecomputer *dc;
|
struct divecomputer *dc;
|
||||||
int duration = 0;
|
unsigned int duration = 0;
|
||||||
|
|
||||||
for_each_dc(dive, dc)
|
for_each_dc(dive, dc)
|
||||||
duration = MAX(duration, dc->duration.seconds);
|
duration = MAX(duration, dc->duration.seconds);
|
||||||
|
|
Loading…
Add table
Reference in a new issue