diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2018-02-11 23:23:59 +0200 |
---|---|---|
committer | Robert C. Helling <helling@atdotde.de> | 2018-02-12 07:48:34 +0100 |
commit | 2b4115d712e4cf82f7adeb9d3e59fd7e1d376e53 (patch) | |
tree | 24d02d3de838459e087643a0d84bc342bfa96dc1 | |
parent | 08c4a287a4b607306e67ed54d16def7a07c6988b (diff) | |
download | subsurface-2b4115d712e4cf82f7adeb9d3e59fd7e1d376e53.tar.gz |
dump_tissues: fix missing 'struct deco_state' argument
With DECO_CALC_DEBUG != 0, divelist.c and profile.c have calls
to dump_tissues() without passing a 'struct deco_state' argument.
Fixes #1105
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
-rw-r--r-- | core/divelist.c | 2 | ||||
-rw-r--r-- | core/profile.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/core/divelist.c b/core/divelist.c index 7c6259a6b..1f76246c9 100644 --- a/core/divelist.c +++ b/core/divelist.c @@ -572,7 +572,7 @@ int init_decompression(struct deco_state *ds, struct dive *dive) deco_init = true; #if DECO_CALC_DEBUG & 2 printf("Tissues after init:\n"); - dump_tissues(); + dump_tissues(ds); #endif } else { diff --git a/core/profile.c b/core/profile.c index e463c9c2b..78f3b2f57 100644 --- a/core/profile.c +++ b/core/profile.c @@ -1147,7 +1147,7 @@ void calculate_deco_information(struct deco_state *ds, struct deco_state *planne } free(cache_data_initial); #if DECO_CALC_DEBUG & 1 - dump_tissues(); + dump_tissues(ds); #endif unlock_planner(); } |