diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/maths.h | 2 |
1 files changed, 1 insertions, 1 deletions
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<Arithmetic R = float, Arithmetic Ta, Arithmetic Tb> constexpr auto ratio(const Ta valueA, const Tb valueB) { - using Common = std::common_type_t<Ta, Ta>; + using Common = std::common_type_t<Ta, Ta, R>; return static_cast<R>((static_cast<Common>(valueA) / static_cast<Common>(valueB))); } |