summaryrefslogtreecommitdiffstats
path: root/dive.c
diff options
context:
space:
mode:
Diffstat (limited to 'dive.c')
-rw-r--r--dive.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dive.c b/dive.c
index 455b1288c..edcb130f4 100644
--- a/dive.c
+++ b/dive.c
@@ -549,7 +549,7 @@ static void sanitize_cylinder_type(cylinder_type_t *type)
volume_of_air = cuft_to_l(type->size.mliter);
/* milliliters at 1 atm: "true size" */
volume = volume_of_air / surface_volume_multiplier(type->workingpressure);
- type->size.mliter = volume + 0.5;
+ type->size.mliter = rint(volume);
}
/* Ok, we have both size and pressure: try to match a description */