diff options
author | Daniel Rentz <dr@openoffice.org> | 2010-01-15 12:00:39 +0100 |
---|---|---|
committer | Daniel Rentz <dr@openoffice.org> | 2010-01-15 12:00:39 +0100 |
commit | 4cc8b5678950041b71b525c70be3f13d48a777cc (patch) | |
tree | a201c0023dbb0633c011a9a8ba7686e97d6aa128 /formula | |
parent | e92917d1bc75f095222ec757f0006b8ef6883a9b (diff) |
dr74: migrate changes to hg
Diffstat (limited to 'formula')
-rw-r--r-- | formula/inc/formula/errorcodes.hxx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/formula/inc/formula/errorcodes.hxx b/formula/inc/formula/errorcodes.hxx index 077129eb046c..e87bef3a43e3 100644 --- a/formula/inc/formula/errorcodes.hxx +++ b/formula/inc/formula/errorcodes.hxx @@ -86,9 +86,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; } |