diff --git a/include/omath/color.hpp b/include/omath/color.hpp index 69e554f..e710a54 100644 --- a/include/omath/color.hpp +++ b/include/omath/color.hpp @@ -95,7 +95,7 @@ namespace omath hsv_data.hue = 0.f; else if (max == red) - hsv_data.hue = 60.f * (std::fmodf(((green - blue) / delta), 6.f)); + hsv_data.hue = 60.f * (std::fmod(static_cast((green - blue) / delta), 6.f)); else if (max == green) hsv_data.hue = 60.f * (((blue - red) / delta) + 2.f); else if (max == blue)