From c2e019b773b33b320cf52174aab3b25dbba5ffcc Mon Sep 17 00:00:00 2001 From: Marek Roszko Date: Sun, 21 May 2023 08:08:45 -0400 Subject: [PATCH] Fix warning fix --- libs/kimath/include/math/vector2d.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libs/kimath/include/math/vector2d.h b/libs/kimath/include/math/vector2d.h index 5fcc2e2e35..a319f6aaf7 100644 --- a/libs/kimath/include/math/vector2d.h +++ b/libs/kimath/include/math/vector2d.h @@ -362,8 +362,8 @@ VECTOR2 VECTOR2::Resize( T aNewLength ) const KiROUND( std::sqrt( rescale( l_sq_new, (extended_type) x * x, l_sq_current ) ) ) ), static_cast( ( y < 0 ? -1 : 1 ) * - KiROUND( std::sqrt( rescale( l_sq_new, (extended_type) y * y, l_sq_current ) ) ) ) - * sign( aNewLength ) ); + KiROUND( std::sqrt( rescale( l_sq_new, (extended_type) y * y, l_sq_current ) ) ) + * sign( aNewLength ) ) ); } else { @@ -372,8 +372,8 @@ VECTOR2 VECTOR2::Resize( T aNewLength ) const std::sqrt( rescale( l_sq_new, (extended_type) x * x, l_sq_current ) ) ), static_cast( ( y < 0 ? -1 : 1 ) * - std::sqrt( rescale( l_sq_new, (extended_type) y * y, l_sq_current ) ) ) - * sign( aNewLength ) ); + std::sqrt( rescale( l_sq_new, (extended_type) y * y, l_sq_current ) ) + * sign( aNewLength ) )); } }