diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2017-03-11 08:52:38 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-03-11 08:52:38 -0800 |
commit | 11a8ab6b1b54e34559d57ef31ecb6f7f94b5f765 (patch) | |
tree | 519ff70670e705361055111f36d91c6bb945d03d | |
parent | b8af3733ecf16df4434355b6795eb45b42ecef34 (diff) | |
download | subsurface-11a8ab6b1b54e34559d57ef31ecb6f7f94b5f765.tar.gz |
Undo one lrint change
As here we actually do want the rounded floatingpoint value.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | core/parse-xml.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 */ |