aboutsummaryrefslogtreecommitdiffstats
path: root/units.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-07-08 12:29:06 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-07-08 12:29:06 -0700
commitf297d9f91e5919c180d15be9562b8e15e6dd368e (patch)
tree835c8cf943badd99daeca1ab53c10b3d59c0c3a8 /units.h
parentc054b18b7055473279b7120d334c453d1c0427ec (diff)
downloadsubsurface-f297d9f91e5919c180d15be9562b8e15e6dd368e.tar.gz
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>
Diffstat (limited to 'units.h')
-rw-r--r--units.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/units.h b/units.h
index f3c02121a..90d7949b0 100644
--- a/units.h
+++ b/units.h
@@ -71,6 +71,11 @@ typedef struct
typedef struct
{
+ int32_t seconds; // offsets up to +/- 34 yrs
+} offset_t;
+
+typedef struct
+{
int32_t mm;
} depth_t; // depth to 2000 km