From 0f023791f8e47bae725629954454d7c623ca3c4d Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Mon, 26 May 2014 14:21:37 -0700 Subject: Fix warning When converting from assert to if I forgot to invert the comparison... Signed-off-by: Dirk Hohndel --- planner.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/planner.c b/planner.c index 8b45252e9..f08acd5e8 100644 --- a/planner.c +++ b/planner.c @@ -678,7 +678,7 @@ void plan(struct diveplan *diveplan, char **cached_datap, struct dive **divep, b /* We will break out when we hit the surface */ do { /* Ascend to next stop depth */ - if (deco_allowed_depth(tissue_tolerance, diveplan->surface_pressure / 1000.0, dive, 1) < depth) + if (deco_allowed_depth(tissue_tolerance, diveplan->surface_pressure / 1000.0, dive, 1) > depth) fprintf(stderr, "user provided way point above ceiling\n"); int deltad = ascend_velocity(depth, avg_depth, bottom_time) * TIMESTEP; if (ascend_velocity(depth, avg_depth, bottom_time) != last_ascend_rate) { -- cgit v1.2.3-70-g09d2