Skip to content

Commit

Permalink
use fmax() instead max()
Browse files Browse the repository at this point in the history
  • Loading branch information
vwaurich authored and OpenModelica-Hudson committed Aug 8, 2017
1 parent 66f09c4 commit a845eda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Compiler/runtime/SimulationResultsCmp.c
Expand Up @@ -175,7 +175,7 @@ static double deltaData(char* varname, DataField *time, DataField *reftime, Data
}
i2 = i+1;
//there is a result value at time t
if (fabs(time->data[i]-t) <= max((0.0001*time->data[time->n]),1e-12))
if (fabs(time->data[i]-t) <= fmax((0.0001*time->data[time->n]),1e-12))
{
val = data->data[i];
}
Expand Down

0 comments on commit a845eda

Please sign in to comment.