[poppler] Branch 'xpdf303merge' - goo/GooString.cc
Carlos Garcia Campos
carlosgc at kemper.freedesktop.org
Sat Sep 3 01:33:57 PDT 2011
goo/GooString.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 0029efbe2a8a97ff34353f8028ac649b2fd07013
Author: Carlos Garcia Campos <carlosgc at gnome.org>
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) {
More information about the poppler
mailing list