diff --git a/libs/util/cexpr-type.c b/libs/util/cexpr-type.c index b5260203e..1efbb2f2a 100644 --- a/libs/util/cexpr-type.c +++ b/libs/util/cexpr-type.c @@ -350,7 +350,7 @@ double_rem (const exprval_t *val1, const exprval_t *val2, exprval_t *result, { double a = *(double *) val1->value; double b = *(double *) val2->value; - *(double *) result->value = a - b * truncf (a / b); + *(double *) result->value = a - b * trunc (a / b); } static void @@ -364,7 +364,7 @@ double_mod (const exprval_t *val1, const exprval_t *val2, exprval_t *result, // -5 mod -3 = -2 double a = *(double *) val1->value; double b = *(double *) val2->value; - *(double *) result->value = a - b * floorf (a / b); + *(double *) result->value = a - b * floor (a / b); } CASTOP (double, int)