From f297d9f91e5919c180d15be9562b8e15e6dd368e Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Tue, 8 Jul 2014 12:29:06 -0700 Subject: 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 --- dive.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dive.h') diff --git a/dive.h b/dive.h index 09a4dda17..b682265fc 100644 --- a/dive.h +++ b/dive.h @@ -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; -- cgit v1.2.3-70-g09d2