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 edcb130f4..e4fe8606c 100644
--- a/dive.c
+++ b/dive.c
@@ -513,7 +513,7 @@ static void match_standard_cylinder(cylinder_type_t *type)
default:
return;
}
- len = snprintf(buffer, sizeof(buffer), fmt, (int) (cuft+0.5));
+ len = snprintf(buffer, sizeof(buffer), fmt, rint(cuft));
p = malloc(len+1);
if (!p)
return;