From 1f651a7b839265845516d86c66493befcbe17094 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sat, 18 Nov 2017 20:51:22 +0100 Subject: Prevent annoying signed/unsigned comparison warning Commit d6c013f303 introduced a cast to avoid a signed/unsigned comparison warning for all translation units that included core/dive.h. Commit 1f8506ce64 then changed the definition of duration_t from unsigned to signed, inverting the effect of d6c013f303. Thus, revert d6c013f303 to allow compilation with -Wall without flooding. Signed-off-by: Berthold Stoeger --- core/dive.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core') diff --git a/core/dive.h b/core/dive.h index 935da735d..5a87eb602 100644 --- a/core/dive.h +++ b/core/dive.h @@ -963,7 +963,7 @@ static inline struct gasmix *get_gasmix(struct dive *dive, struct divecomputer * gasmix = &dive->cylinder[cyl].gasmix; ev = dc ? dc->events : NULL; } - while (ev && ev->time.seconds < (unsigned int)time) { + while (ev && ev->time.seconds < time) { gasmix = get_gasmix_from_event(dive, ev); ev = get_next_event(ev->next, "gaschange"); } -- cgit v1.2.3-70-g09d2