From 1ae4e65747de258d922aff4f31d4e3d03ad7ef84 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Fri, 14 Mar 2025 01:21:22 +0000 Subject: Fix ratio to include return type in common intermediary type --- lib/maths.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/maths.h b/lib/maths.h index 2049c78..0afce98 100644 --- a/lib/maths.h +++ b/lib/maths.h @@ -317,7 +317,7 @@ template constexpr auto ratio(const Ta valueA, const Tb valueB) { - using Common = std::common_type_t; + using Common = std::common_type_t; return static_cast((static_cast(valueA) / static_cast(valueB))); } -- cgit v1.2.3