Kaydet (Commit) 79b46d5f authored tarafından Eike Rathke's avatar Eike Rathke

sal_math_Double is already a union containing a double member

Change-Id: I6e753bc0c5967ed07f162b0baa2daca4499953be
üst b2a82d9b
......@@ -87,14 +87,10 @@ const sal_uInt16 NOTAVAILABLE = 0x7fff;
represent an interpreter error code. */
inline double CreateDoubleError( sal_uInt16 nErr )
{
union
{
double fVal;
sal_math_Double smVal;
};
::rtl::math::setNan( &fVal );
sal_math_Double smVal;
::rtl::math::setNan( &smVal.value );
smVal.nan_parts.fraction_lo = nErr;
return fVal;
return smVal.value;
}
/** Recreate the error code of a coded double error, if any. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment