mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-20 06:45:27 +00:00
Prevent annoying signed/unsigned comparison warning
Commitd6c013f303
introduced a cast to avoid a signed/unsigned comparison warning for all translation units that included core/dive.h. Commit1f8506ce64
then changed the definition of duration_t from unsigned to signed, inverting the effect ofd6c013f303
. Thus, revertd6c013f303
to allow compilation with -Wall without flooding. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
f034121bef
commit
1f651a7b83
1 changed files with 1 additions and 1 deletions
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue