diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2010-01-05 13:01:54 +0100 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2010-01-05 13:01:54 +0100 |
commit | f52fb6272ab6d15a72b45707f2599359b7627604 (patch) | |
tree | dfea1075aab5962b568041cbc3a7a8f5ea763aeb /sal/rtl/source/math.cxx | |
parent | fed92864b28a32bee9d7cd8bfffd5a4b523e18d4 (diff) | |
parent | 4a96552f4966f204a15287d3c1a9340012792661 (diff) |
CWS-TOOLING: integrate CWS sb116
Diffstat (limited to 'sal/rtl/source/math.cxx')
-rw-r--r-- | sal/rtl/source/math.cxx | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sal/rtl/source/math.cxx b/sal/rtl/source/math.cxx index a255ca21b13a..012046c9e5c8 100644 --- a/sal/rtl/source/math.cxx +++ b/sal/rtl/source/math.cxx @@ -879,8 +879,13 @@ inline double stringToDouble(CharT const * pBegin, CharT const * pEnd, rtl::math::setNan( &fVal ); if (bSign) { - reinterpret_cast< sal_math_Double * >(&fVal)->w32_parts.msw - |= 0x80000000; // create negative NaN + union { + double sd; + sal_math_Double md; + } m; + m.sd = fVal; + m.md.w32_parts.msw |= 0x80000000; // create negative NaN + fVal = m.sd; bSign = false; // don't negate again } // Eat any further digits: |