Changeset View
Changeset View
Standalone View
Standalone View
head/editors/openoffice-devel/files/patch-i114430
Index: sc/source/core/tool/interpr5.cxx | --- sc/source/core/tool/interpr5.cxx.orig 2014-09-19 18:03:51 UTC | ||||
=================================================================== | +++ sc/source/core/tool/interpr5.cxx | ||||
--- sc/source/core/tool/interpr5.cxx (revision 1678278) | @@ -1611,14 +1611,14 @@ void ScInterpreter::ScPow() | ||||
+++ sc/source/core/tool/interpr5.cxx (working copy) | |||||
@@ -1611,7 +1611,7 @@ | |||||
if (bFlag) | if (bFlag) | ||||
{ for ( SCSIZE i = 0; i < nCount; i++ ) | { for ( SCSIZE i = 0; i < nCount; i++ ) | ||||
if (pMat->IsValue(i)) | if (pMat->IsValue(i)) | ||||
- pResMat->PutDouble(pow(fVal,pMat->GetDouble(i)), i); | - pResMat->PutDouble(pow(fVal,pMat->GetDouble(i)), i); | ||||
+ pResMat->PutDouble(::rtl::math::powr(fVal,pMat->GetDouble(i)), i); | + pResMat->PutDouble(::rtl::math::powr(fVal,pMat->GetDouble(i)), i); | ||||
else | else | ||||
pResMat->PutString(ScGlobal::GetRscString(STR_NO_VALUE), i); | pResMat->PutString(ScGlobal::GetRscString(STR_NO_VALUE), i); | ||||
} | } | ||||
@@ -1618,7 +1618,7 @@ | |||||
else | else | ||||
{ for ( SCSIZE i = 0; i < nCount; i++ ) | { for ( SCSIZE i = 0; i < nCount; i++ ) | ||||
if (pMat->IsValue(i)) | if (pMat->IsValue(i)) | ||||
- pResMat->PutDouble(pow(pMat->GetDouble(i),fVal), i); | - pResMat->PutDouble(pow(pMat->GetDouble(i),fVal), i); | ||||
+ pResMat->PutDouble(::rtl::math::powr(pMat->GetDouble(i),fVal), i); | + pResMat->PutDouble(::rtl::math::powr(pMat->GetDouble(i),fVal), i); | ||||
else | else | ||||
pResMat->PutString(ScGlobal::GetRscString(STR_NO_VALUE), i); | pResMat->PutString(ScGlobal::GetRscString(STR_NO_VALUE), i); | ||||
} | } | ||||
@@ -1628,7 +1628,7 @@ | @@ -1628,7 +1628,7 @@ void ScInterpreter::ScPow() | ||||
PushIllegalArgument(); | PushIllegalArgument(); | ||||
} | } | ||||
else | else | ||||
- PushDouble(pow(fVal1,fVal2)); | - PushDouble(pow(fVal1,fVal2)); | ||||
+ PushDouble(::rtl::math::powr(fVal1,fVal2)); | + PushDouble(::rtl::math::powr(fVal1,fVal2)); | ||||
} | } | ||||
void ScInterpreter::ScSumProduct() | void ScInterpreter::ScSumProduct() |