diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-06-24 16:30:08 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-06-24 16:30:08 +0200 |
commit | 67fccad964a1e556e762939177e588620b2a1889 (patch) | |
tree | 334fac4a91f5c27b2defd2189023e6a983b67991 /sal/qa | |
parent | 88cd9dd591d7921e5bce33c170b457ae5aa871bb (diff) |
clang-analyzer-deadcode.DeadStores
Change-Id: Idb7996e9063955dbb8126243670bdc30bd8dd97a
Diffstat (limited to 'sal/qa')
-rw-r--r-- | sal/qa/rtl/math/test-rtl-math.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sal/qa/rtl/math/test-rtl-math.cxx b/sal/qa/rtl/math/test-rtl-math.cxx index 3de49569a082..bdfd19710b2e 100644 --- a/sal/qa/rtl/math/test-rtl-math.cxx +++ b/sal/qa/rtl/math/test-rtl-math.cxx @@ -155,7 +155,7 @@ public: CPPUNIT_ASSERT_EQUAL(-1.0,res); rtl::math::setNan( &x); res = rtl::math::erf(x); - CPPUNIT_ASSERT_EQUAL(true,rtl::math::isNan(x)); + CPPUNIT_ASSERT_EQUAL(true,rtl::math::isNan(res)); x = 3.0; res = rtl::math::erf(-x); CPPUNIT_ASSERT_DOUBLES_EQUAL( -rtl::math::erf(x), res, 1E-12); @@ -174,7 +174,7 @@ public: CPPUNIT_ASSERT_EQUAL(2.0,res); rtl::math::setNan( &x); res = rtl::math::erfc(x); - CPPUNIT_ASSERT_EQUAL(true,rtl::math::isNan(x)); + CPPUNIT_ASSERT_EQUAL(true,rtl::math::isNan(res)); x = 3.0; res = rtl::math::erfc(-x); CPPUNIT_ASSERT_DOUBLES_EQUAL( 2.0 - rtl::math::erfc(x), res, 1E-12); @@ -197,7 +197,7 @@ public: CPPUNIT_ASSERT_EQUAL(-1.0,res); rtl::math::setNan( &x); res = rtl::math::expm1(x); - CPPUNIT_ASSERT_EQUAL(true,rtl::math::isNan(x)); + CPPUNIT_ASSERT_EQUAL(true,rtl::math::isNan(res)); } void test_log1p() { @@ -223,7 +223,7 @@ public: CPPUNIT_ASSERT_EQUAL(true, rtl::math::isNan(res)); rtl::math::setNan( &x); res = rtl::math::log1p(x); - CPPUNIT_ASSERT_EQUAL(true,rtl::math::isNan(x)); + CPPUNIT_ASSERT_EQUAL(true,rtl::math::isNan(res)); } CPPUNIT_TEST_SUITE(Test); |