summaryrefslogtreecommitdiff
path: root/include/rtl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-04-06 18:31:59 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-04-06 18:31:59 +0200
commitde0ea66610a4bda091d0d6103ff251530a7bb60c (patch)
treead93c375c9f1f3bc899cd3adb253c8f1dec4f064 /include/rtl
parent12162c8297b3661bd0bad65df830f42141e94672 (diff)
Improved loplugin:redundantcast, static_cast on arithmetic types: sal
Change-Id: I7caadbc06b2266800666151de75d799c42148aca
Diffstat (limited to 'include/rtl')
-rw-r--r--include/rtl/math.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/rtl/math.hxx b/include/rtl/math.hxx
index 7572c972a91f..fc53828610ee 100644
--- a/include/rtl/math.hxx
+++ b/include/rtl/math.hxx
@@ -294,7 +294,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(static_cast<double>(2.0), nPrec))));
+ < ((a < 0.0 ? -a : a) * (1.0 / (pow(2.0, nPrec))));
}
/** Add two values.