summaryrefslogtreecommitdiffstats
path: root/dive.h
diff options
context:
space:
mode:
Diffstat (limited to 'dive.h')
-rw-r--r--dive.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/dive.h b/dive.h
index 1ad5a9599..727f03033 100644
--- a/dive.h
+++ b/dive.h
@@ -205,7 +205,7 @@ static inline double bar_to_atm(double bar)
static inline double to_ATM(pressure_t pressure)
{
- return pressure.mbar / SURFACE_PRESSURE;
+ return pressure.mbar / (double) SURFACE_PRESSURE;
}
static inline int mbar_to_PSI(int mbar)