Fix picture loading

Signed vs unsigned comparisons are such a pain. Since we want offsets to
be +/- 30 minutes around the dive we need to allow negative offsets - but
duration_t was defined as uint32_t.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2014-07-08 12:29:06 -07:00
parent c054b18b70
commit f297d9f91e
5 changed files with 33 additions and 6 deletions

2
dive.h
View file

@ -292,7 +292,7 @@ struct dive {
/* picture list and methods related to dive picture handling */
struct picture {
char *filename;
duration_t offset;
offset_t offset;
degrees_t latitude;
degrees_t longitude;
struct picture *next;