diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2016-03-23 09:53:44 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-03-23 09:53:44 -0700 |
commit | 22c94a3e6596f04c86d102098e542a88502410a9 (patch) | |
tree | 0f75bc7b44a7fe249c3bf4a359d3c91cb179d4aa /subsurface-core/dive.c | |
parent | e93c99c8bc9c7ebcc39aa8be16476a794a845636 (diff) | |
download | subsurface-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/dive.c')
-rw-r--r-- | subsurface-core/dive.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/subsurface-core/dive.c b/subsurface-core/dive.c index cad2a85cc..ccb27aaf7 100644 --- a/subsurface-core/dive.c +++ b/subsurface-core/dive.c @@ -3252,7 +3252,7 @@ void set_informational_units(char *units) } } -void average_max_depth(struct diveplan *dive, unsigned int *avg_depth, unsigned int *max_depth) +void average_max_depth(struct diveplan *dive, int *avg_depth, int *max_depth) { int integral = 0; int last_time = 0; |