aboutsummaryrefslogtreecommitdiffstats
path: root/core/dive.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/dive.h')
-rw-r--r--core/dive.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/dive.h b/core/dive.h
index 350331d95..1f007182d 100644
--- a/core/dive.h
+++ b/core/dive.h
@@ -921,7 +921,7 @@ static inline struct gasmix *get_gasmix(struct dive *dive, struct divecomputer *
gasmix = &dive->cylinder[cyl].gasmix;
ev = dc->events;
}
- while (ev && ev->time.seconds < time) {
+ while (ev && ev->time.seconds < (unsigned int)time) {
gasmix = get_gasmix_from_event(dive, ev);
ev = get_next_event(ev->next, "gaschange");
}