[Libreoffice-commits] .: sal/inc

Markus Mohrhard mmohrhard at kemper.freedesktop.org
Sat Apr 14 17:21:53 PDT 2012


 sal/inc/rtl/math.hxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 4d804a0052fe661603bc8280bfa541a7b0a302ae
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date:   Sun Apr 15 02:18:37 2012 +0200

    fix ambiguous call on windows

diff --git a/sal/inc/rtl/math.hxx b/sal/inc/rtl/math.hxx
index 8f4991a..40eba50 100644
--- a/sal/inc/rtl/math.hxx
+++ b/sal/inc/rtl/math.hxx
@@ -274,7 +274,7 @@ inline bool approxEqual(double a, double b, sal_Int16 nPrec)
         return true;
     double x = a - b;
     return (x < 0.0 ? -x : x)
-        < ((a < 0.0 ? -a : a) * (1.0 / (pow(2, nPrec))));
+        < ((a < 0.0 ? -a : a) * (1.0 / (pow(static_cast<double>(2.0), nPrec))));
 }
 /** Add two values.
 


More information about the Libreoffice-commits mailing list