summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-04-15 02:18:37 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-04-15 02:20:45 +0200
commit4d804a0052fe661603bc8280bfa541a7b0a302ae (patch)
tree8a97da3732752387dd0c1e82c96159b5e13354b3 /sal
parent89986db6d5033181324e595032b8d3879d41a705 (diff)
fix ambiguous call on windows
Diffstat (limited to 'sal')
-rw-r--r--sal/inc/rtl/math.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sal/inc/rtl/math.hxx b/sal/inc/rtl/math.hxx
index 8f4991a378d0..40eba502ef9a 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.