summaryrefslogtreecommitdiffstats
path: root/core/uemis-downloader.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2017-03-11 08:41:41 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-03-11 08:41:41 -0800
commit08284275e733fcea8b909b86fda503d4b24e0b84 (patch)
treeb2092172f09044d58efdae479447bae9b6c824ad /core/uemis-downloader.c
parentb8b858a9d299877969527ef5b3c4bde97bb86d05 (diff)
parent2b06a0b2234cf2779f80e87038011067be282bcb (diff)
downloadsubsurface-08284275e733fcea8b909b86fda503d4b24e0b84.tar.gz
Merge branch 'master' of https://github.com/dje29/subsurface
Diffstat (limited to 'core/uemis-downloader.c')
-rw-r--r--core/uemis-downloader.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/uemis-downloader.c b/core/uemis-downloader.c
index 0e4ecb6a9..6bf2dcabf 100644
--- a/core/uemis-downloader.c
+++ b/core/uemis-downloader.c
@@ -92,7 +92,7 @@ static void uemis_ts(char *buffer, void *_when)
/* float minutes */
static void uemis_duration(char *buffer, duration_t *duration)
{
- duration->seconds = rint(ascii_strtod(buffer, NULL) * 60);
+ duration->seconds = lrint(ascii_strtod(buffer, NULL) * 60);
}
/* int cm */
@@ -129,8 +129,8 @@ static void uemis_add_string(const char *buffer, char **text, const char *delimi
static void uemis_get_weight(char *buffer, weightsystem_t *weight, int diveid)
{
weight->weight.grams = uemis_get_weight_unit(diveid) ?
- lbs_to_grams(ascii_strtod(buffer, NULL)) :
- ascii_strtod(buffer, NULL) * 1000;
+ lbs_to_grams(ascii_strtod(buffer, NULL)) :
+ lrint(ascii_strtod(buffer, NULL) * 1000);
weight->description = strdup(translate("gettextFromC", "unknown"));
}