diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2017-11-18 20:51:22 +0100 |
---|---|---|
committer | Lubomir I. Ivanov <neolit123@gmail.com> | 2017-11-18 21:50:43 +0100 |
commit | 1f651a7b839265845516d86c66493befcbe17094 (patch) | |
tree | 89d9a1fd145c3114f2c73a727ef8ba5f0e796d7c /core | |
parent | f034121beffb5c066012f325bf8f898de7968939 (diff) | |
download | subsurface-1f651a7b839265845516d86c66493befcbe17094.tar.gz |
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 <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core')
-rw-r--r-- | core/dive.h | 2 |
1 files changed, 1 insertions, 1 deletions
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"); } |