summaryrefslogtreecommitdiffstats
path: root/dive.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-06-03 17:06:59 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-06-03 17:06:59 -0700
commitd211bc55be8420ca5d6bc6a252f9318fc9c4fc43 (patch)
tree7caee92831aaa70663aff6d41ddb500ac1e8616e /dive.c
parenteaf6d564874ac838dc4f3cca7a781034ae60ef7f (diff)
downloadsubsurface-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dive.c b/dive.c
index fe2b408ea..145a01883 100644
--- a/dive.c
+++ b/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);