From d211bc55be8420ca5d6bc6a252f9318fc9c4fc43 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Tue, 3 Jun 2014 17:06:59 -0700 Subject: When calculating the maximum of unsigned values, use unsigned variable Signed-off-by: Dirk Hohndel --- dive.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dive.c') 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); -- cgit v1.2.3-70-g09d2