goo/GooString.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 0029efbe2a8a97ff34353f8028ac649b2fd07013
Author: Carlos Garcia Campos <[email protected]>
Date: Sat Sep 3 10:32:14 2011 +0200
xpdf303: Use a double instead of an int with a cast
diff --git a/goo/GooString.cc b/goo/GooString.cc
index 5c8a14d..49239aa 100644
--- a/goo/GooString.cc
+++ b/goo/GooString.cc
@@ -666,7 +666,7 @@ void GooString::formatDouble(double x, char *buf, int
bufSize, int prec,
if ((neg = x < 0)) {
x = -x;
}
- x = floor(x * pow((double)10, prec) + 0.5);
+ x = floor(x * pow(10.0, prec) + 0.5);
i = bufSize;
started = !trim;
for (j = 0; j < prec && i > 1; ++j) {
_______________________________________________
poppler mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/poppler