Base: make our fmod require floating point values

This commit is contained in:
Benjamin Nauck
2025-04-08 23:12:48 +02:00
parent 1370c2101f
commit cc40e522de

View File

@@ -173,7 +173,7 @@ inline long toPercent(float value)
return std::lround(100.0 * value);
}
template<class T>
template<std::floating_point T>
inline T fmod(T numerator, T denominator)
{
T modulo = std::fmod(numerator, denominator);