We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c723ab commit d0f6b47Copy full SHA for d0f6b47
SimulationRuntime/c/openmodelica.h
@@ -151,7 +151,7 @@ struct type_desc_s {
151
152
/* Special Modelica builtin functions*/
153
#define smooth(P,EXP) (EXP)
154
-#define semiLinear(x,positiveSlope,negativeSlope) (x>=0?positiveSlope*x:negativeSlope*x)
+#define semiLinear(x,positiveSlope,negativeSlope) (x>=0?(positiveSlope)*(x):(negativeSlope)*(x))
155
156
/* sign function */
157
static inline int sign(double v)
0 commit comments