[goffice] dtoa: fix FMR.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [goffice] dtoa: fix FMR.
- Date: Tue, 29 Apr 2014 13:07:20 +0000 (UTC)
commit 421b4193b07ac3669f3db98cba3a818a5d771feb
Author: Morten Welinder <terra gnome org>
Date: Tue Apr 29 09:06:44 2014 -0400
dtoa: fix FMR.
A patch to musl was incorrectly imported, it seems.
ChangeLog | 4 ++++
goffice/math/go-dtoa.c | 2 +-
2 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 4ca6f57..b7b0705 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2014-04-29 Morten Welinder <terra gnome org>
+
+ * goffice/math/go-dtoa.c (fmt_fp): Fix FMR.
+
2014-04-28 Morten Welinder <terra gnome org>
* tests/test-format.c (test_general_format): Simple test for
diff --git a/goffice/math/go-dtoa.c b/goffice/math/go-dtoa.c
index ebd379f..7434076 100644
--- a/goffice/math/go-dtoa.c
+++ b/goffice/math/go-dtoa.c
@@ -315,7 +315,7 @@ static int fmt_fp(FAKE_FILE *f, long double y, int w, int p, int fl, int t)
}
if (z>d+1) z=d+1;
}
- for (; !z[-1] && z>a; z--);
+ for (; z>a && !z[-1]; z--);
if ((t|32)=='g') {
if (!p) p++;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]