From 239b3ab10b460da34c490a7e06a21c984e21ffb6 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Fri, 26 Nov 2021 20:21:12 +0000 Subject: Enable all Jason Turner recommended warnings --- lib/maths.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/maths.h') diff --git a/lib/maths.h b/lib/maths.h index 285c69a..18332b7 100644 --- a/lib/maths.h +++ b/lib/maths.h @@ -69,7 +69,7 @@ template inline constexpr auto rdiv(Ta a, Tb b) { - return ((R)a / (R)b); + return (static_cast(a) / static_cast(b)); } constexpr inline glm::vec2 @@ -105,14 +105,14 @@ float find_arcs_radius(glm::vec2 start, glm::vec2 ad, glm::vec2 end, glm::vec2 b // Conversions template -inline constexpr float +inline constexpr auto mph_to_ms(T v) { return v / 2.237; } template -inline constexpr float +inline constexpr auto kph_to_ms(T v) { return v / 3.6; -- cgit v1.2.3