summaryrefslogtreecommitdiff
path: root/formula/inc
diff options
context:
space:
mode:
authorNiklas Nebel <nn@openoffice.org>2010-04-29 13:35:08 +0200
committerNiklas Nebel <nn@openoffice.org>2010-04-29 13:35:08 +0200
commit29ce98cbc3951b64ad079074f84e05b6d87621a0 (patch)
tree8589e6b75d75f4a851a127ccc6be5117e9595364 /formula/inc
parent956a360265d19e985ce405c8600832888299f713 (diff)
parent515792c312abc929b4616c757b8eaced67718d10 (diff)
calc53: merge with DEV300_m77
Diffstat (limited to 'formula/inc')
-rw-r--r--formula/inc/formula/errorcodes.hxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/formula/inc/formula/errorcodes.hxx b/formula/inc/formula/errorcodes.hxx
index 2d8d9d18b71b..f9b04e012fab 100644
--- a/formula/inc/formula/errorcodes.hxx
+++ b/formula/inc/formula/errorcodes.hxx
@@ -83,9 +83,13 @@ const USHORT NOTAVAILABLE = 0x7fff;
represent an interpreter error code. */
inline double CreateDoubleError( USHORT nErr )
{
- double fVal;
+ union
+ {
+ double fVal;
+ sal_math_Double smVal;
+ };
::rtl::math::setNan( &fVal );
- reinterpret_cast< sal_math_Double * >(&fVal)->nan_parts.fraction_lo = nErr;
+ smVal.nan_parts.fraction_lo = nErr;
return fVal;
}