summaryrefslogtreecommitdiffstats
path: root/core/uemis.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/uemis.c')
-rw-r--r--core/uemis.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/uemis.c b/core/uemis.c
index 5635d5630..564e7dfbb 100644
--- a/core/uemis.c
+++ b/core/uemis.c
@@ -337,7 +337,7 @@ void uemis_parse_divelog_binary(char *base64, void *datap)
* we store the incorrect working pressure to get the SAC calculations "close"
* but the user will have to correct this manually
*/
- dive->cylinder[i].type.size.mliter = rint(volume);
+ dive->cylinder[i].type.size.mliter = lrintf(volume);
dive->cylinder[i].type.workingpressure.mbar = 202600;
dive->cylinder[i].gasmix.o2.permille = *(uint8_t *)(data + 120 + 25 * (gasoffset + i)) * 10;
dive->cylinder[i].gasmix.he.permille = 0;