summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2016-02-04 13:19:58 +0000
committerRobin Watts <robin.watts@artifex.com>2016-02-04 13:19:58 +0000
commit5d840271f62c5a51bb83d561181de860086bb6be (patch)
tree6af7d16fa8b428bc0cfc0842c4d499ba106094e6
parent560db0c72d5bf6404378a8ac3bd1de9af3efa835 (diff)
downloadmupdf-5d840271f62c5a51bb83d561181de860086bb6be.tar.xz
Bug 696546: Minor tweaks to ftoa code.
Thanks to Simon Reinhardt for these.
-rw-r--r--include/mupdf/fitz/string.h2
-rw-r--r--source/fitz/ftoa.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/mupdf/fitz/string.h b/include/mupdf/fitz/string.h
index 878610e2..81429b67 100644
--- a/include/mupdf/fitz/string.h
+++ b/include/mupdf/fitz/string.h
@@ -122,7 +122,7 @@ float fz_strtof_no_exp(const char *string, char **tailptr);
fz_grisu: Compute decimal integer m, exp such that:
f = m * 10^exp
m is as short as possible without losing exactness
- Assumes special cases (NaN, +Inf, -Inf) have been handled.
+ Assumes special cases (0, NaN, +Inf, -Inf) have been handled.
*/
int fz_grisu(float f, char *s, int *exp);
diff --git a/source/fitz/ftoa.c b/source/fitz/ftoa.c
index a3f7b5c6..4ec492e9 100644
--- a/source/fitz/ftoa.c
+++ b/source/fitz/ftoa.c
@@ -209,7 +209,7 @@ static uint64_t powers_ten[84] = {
};
/* Exponents. */
-static uint64_t powers_ten_e[84] = {
+static int powers_ten_e[84] = {
-186, -183, -180, -176, -173, -170, -166, -163, -160, -157, -153,
-150, -147, -143, -140, -137, -133, -130, -127, -123, -120, -117,
-113, -110, -107, -103, -100, -97, -93, -90, -87, -83, -80,