From 11a8ab6b1b54e34559d57ef31ecb6f7f94b5f765 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sat, 11 Mar 2017 08:52:38 -0800 Subject: Undo one lrint change As here we actually do want the rounded floatingpoint value. Signed-off-by: Dirk Hohndel --- core/parse-xml.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/parse-xml.c b/core/parse-xml.c index 2bd00bafa..38cd25f05 100644 --- a/core/parse-xml.c +++ b/core/parse-xml.c @@ -286,7 +286,7 @@ static enum number_type parse_float(const char *buffer, double *res, const char if (errno || *endp == buffer) return NEITHER; if (**endp == ',') { - if (IS_FP_SAME(val, lrint(val))) { + if (IS_FP_SAME(val, rint(val))) { /* we really want to send an error if this is a Subsurface native file * as this is likely indication of a bug - but right now we don't have * that information available */ -- cgit v1.2.3-70-g09d2