summaryrefslogtreecommitdiffstats
path: root/subsurface-core/deco.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2016-03-23 09:53:44 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-03-23 09:53:44 -0700
commit22c94a3e6596f04c86d102098e542a88502410a9 (patch)
tree0f75bc7b44a7fe249c3bf4a359d3c91cb179d4aa /subsurface-core/deco.h
parente93c99c8bc9c7ebcc39aa8be16476a794a845636 (diff)
downloadsubsurface-22c94a3e6596f04c86d102098e542a88502410a9.tar.gz
Don't try to force depth to be unsigned
Trying to clean up the signed vs. unsigned issues it becomes clear that forcing depth to be unsigned causes way too many problems in the code. So this commit goes the opposite direction; since we clearly aren't limited INT_MAX vs UINT_MAX, simply make more of the depth related variables signed. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'subsurface-core/deco.h')
-rw-r--r--subsurface-core/deco.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/subsurface-core/deco.h b/subsurface-core/deco.h
index 08ff93422..fd3b94a9f 100644
--- a/subsurface-core/deco.h
+++ b/subsurface-core/deco.h
@@ -11,6 +11,7 @@ extern double tissue_inertgas_saturation[16];
extern double buehlmann_inertgas_a[16], buehlmann_inertgas_b[16];
extern double gf_low_pressure_this_dive;
+extern int deco_allowed_depth(double tissues_tolerance, double surface_pressure, struct dive *dive, bool smooth);
#ifdef __cplusplus
}