diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-06-03 17:06:59 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-06-03 17:06:59 -0700 |
commit | d211bc55be8420ca5d6bc6a252f9318fc9c4fc43 (patch) | |
tree | 7caee92831aaa70663aff6d41ddb500ac1e8616e /dive.c | |
parent | eaf6d564874ac838dc4f3cca7a781034ae60ef7f (diff) | |
download | subsurface-d211bc55be8420ca5d6bc6a252f9318fc9c4fc43.tar.gz |
When calculating the maximum of unsigned values, use unsigned variable
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'dive.c')
-rw-r--r-- | dive.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |