From 9a28dd76e216dd24d24666e324be280531814b95 Mon Sep 17 00:00:00 2001 From: Chip Hogg Date: Fri, 15 Dec 2023 11:51:36 -0500 Subject: [PATCH] Try fixing Wconversion error on gcc --- au/apply_magnitude.hh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/au/apply_magnitude.hh b/au/apply_magnitude.hh index ec2514c2..6f3294e7 100644 --- a/au/apply_magnitude.hh +++ b/au/apply_magnitude.hh @@ -164,7 +164,8 @@ struct ApplyMagnitudeImpl { "Mismatched instantiation (should never be done manually)"); constexpr T operator()(const T &x) { - return x * get_value(numerator(Mag{})) / get_value(denominator(Mag{})); + return static_cast(x * get_value(numerator(Mag{})) / + get_value(denominator(Mag{}))); } static constexpr bool would_overflow(const T &x) {