diff --git a/libs/math/include/psemek/math/math.hpp b/libs/math/include/psemek/math/math.hpp index 40d3d3e8..d29f14f9 100644 --- a/libs/math/include/psemek/math/math.hpp +++ b/libs/math/include/psemek/math/math.hpp @@ -35,13 +35,13 @@ namespace psemek::math template T deg(T x) { - return static_cast((180 * x) / pi); + return static_cast((180 * x) / static_cast(pi)); } template T rad(T x) { - return static_cast((x * pi) / 180); + return static_cast((x * static_cast(pi)) / 180); } template