prepare for gcc6 rint() precision degradation

gcc6 returns a float for "rint ((float) val)"
This commit is contained in:
Robin Gareus 2016-02-22 00:07:21 +01:00
parent f6fe87d63e
commit 30497db823

View File

@ -178,8 +178,8 @@ ParameterDescriptor::update_steps()
largestep = largestep / logf(30.0f);
} else if (integer_step) {
smallstep = 1.0;
step = std::max(1.0, rint(step));
largestep = std::max(1.0, rint(largestep));
step = std::max(1.f, rintf (step));
largestep = std::max(1.f, rintf (largestep));
}
}
}