summaryrefslogtreecommitdiffstats
path: root/core/planner.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2017-12-17 09:12:08 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-12-17 10:25:01 -0800
commit6b80b41c7cc8b56ea70447dc4dfaf250fa6f4743 (patch)
treeb25431c0cbb694695b69feaee5f0c5fafd22586c /core/planner.c
parent648fec7a3d0b65afdc95c71a638d0f792b93adf2 (diff)
downloadsubsurface-6b80b41c7cc8b56ea70447dc4dfaf250fa6f4743.tar.gz
Cleanup: durations are now signed
Somehow a whitespace fix snuck in here. Oops. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/planner.c')
-rw-r--r--core/planner.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/planner.c b/core/planner.c
index 8ace46e35..2c5ad3d95 100644
--- a/core/planner.c
+++ b/core/planner.c
@@ -116,7 +116,7 @@ int get_gasidx(struct dive *dive, struct gasmix *mix)
void interpolate_transition(struct deco_state *ds, struct dive *dive, duration_t t0, duration_t t1, depth_t d0, depth_t d1, const struct gasmix *gasmix, o2pressure_t po2)
{
- uint32_t j;
+ int32_t j;
for (j = t0.seconds; j < t1.seconds; j++) {
int depth = interpolate(d0.mm, d1.mm, j - t0.seconds, t1.seconds - t0.seconds);
@@ -287,7 +287,7 @@ static void create_dive_from_plan(struct diveplan *diveplan, struct dive *dive,
free(ev);
}
dp = diveplan->dp;
- /* Create first sample at time = 0, not based on dp because
+ /* Create first sample at time = 0, not based on dp because
* there is no real dp for time = 0, set first cylinder to 0
* O2 setpoint for this sample will be filled later from next dp */
cyl = &dive->cylinder[0];