Skip to content
This repository was archived by the owner on May 18, 2019. It is now read-only.

Commit 050a820

Browse files
adrpoOpenModelica-Hudson
authored andcommitted
use fabs for doubles
Belonging to [master]: - #2988
1 parent f350041 commit 050a820

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SimulationRuntime/c/dataReconciliation/dataReconciliation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -965,7 +965,7 @@ int RunReconciliation(DATA* data, threadData_t *threadData, inputData x, matrixD
965965
// calculate absolute value for this numeric analysis
966966
for (unsigned int a=0; a < sizeof(newX); a++)
967967
{
968-
newX[a]=abs(newX[a]);
968+
newX[a] = fabs(newX[a]);
969969
}
970970
if(ACTIVE_STREAM(LOG_JAC))
971971
{

0 commit comments

Comments
 (0)