From be6b50fce403ab6fd7d9b99167f57e4aa31d2a77 Mon Sep 17 00:00:00 2001 From: "Robert C. Helling" Date: Mon, 13 Nov 2017 16:12:45 +0100 Subject: Add logic parentheses to make compiler happy Signed-off-by: Robert C. Helling --- core/profile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core') diff --git a/core/profile.c b/core/profile.c index ac327aee2..6fafb3017 100644 --- a/core/profile.c +++ b/core/profile.c @@ -1047,7 +1047,7 @@ void calculate_deco_information(struct dive *dive, struct divecomputer *dc, stru /* If using VPM-B, take first_ceiling_pressure as the deepest ceiling */ if (decoMode() == VPMB) { if (current_ceiling >= first_ceiling || - time_deep_ceiling == t0 && entry->depth == (entry - 1)->depth) { + (time_deep_ceiling == t0 && entry->depth == (entry - 1)->depth)) { time_deep_ceiling = t1; first_ceiling = current_ceiling; deco_state->first_ceiling_pressure.mbar = depth_to_mbar(first_ceiling, dive); -- cgit v1.2.3-70-g09d2