diff options
-rw-r--r-- | include/rtl/math.hxx | 2 | ||||
-rw-r--r-- | sal/qa/rtl/textenc/rtl_tencinfo.cxx | 2 |
2 files changed, 2 insertions, 2 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. diff --git a/sal/qa/rtl/textenc/rtl_tencinfo.cxx b/sal/qa/rtl/textenc/rtl_tencinfo.cxx index a67fc9cc419c..97719178f96f 100644 --- a/sal/qa/rtl/textenc/rtl_tencinfo.cxx +++ b/sal/qa/rtl/textenc/rtl_tencinfo.cxx @@ -1012,7 +1012,7 @@ namespace { const sal_uInt8 nCharSet = rtl_getBestWindowsCharsetFromTextEncoding(nIn); rtl_TextEncoding eTextEnc = rtl_getTextEncodingFromWindowsCharset(nCharSet); - CPPUNIT_ASSERT_EQUAL_MESSAGE("rtl_getBestWindowsCharsetFromTextEncoding && rtl_getTextEncodingFromWindowsCharset differ", static_cast<rtl_TextEncoding>(nOut), eTextEnc ); + CPPUNIT_ASSERT_EQUAL_MESSAGE("rtl_getBestWindowsCharsetFromTextEncoding && rtl_getTextEncodingFromWindowsCharset differ", nOut, eTextEnc ); } void WindowsCharsetFromTextEncoding_MS_1252() |