Fix warning fix

This commit is contained in:
Marek Roszko 2023-05-21 08:08:45 -04:00
parent 502da2d03c
commit c2e019b773
1 changed files with 4 additions and 4 deletions

View File

@ -362,8 +362,8 @@ VECTOR2<T> VECTOR2<T>::Resize( T aNewLength ) const
KiROUND( std::sqrt( rescale( l_sq_new, (extended_type) x * x, l_sq_current ) ) ) ), KiROUND( std::sqrt( rescale( l_sq_new, (extended_type) x * x, l_sq_current ) ) ) ),
static_cast<T>( static_cast<T>(
( y < 0 ? -1 : 1 ) * ( y < 0 ? -1 : 1 ) *
KiROUND( std::sqrt( rescale( l_sq_new, (extended_type) y * y, l_sq_current ) ) ) ) KiROUND( std::sqrt( rescale( l_sq_new, (extended_type) y * y, l_sq_current ) ) )
* sign( aNewLength ) ); * sign( aNewLength ) ) );
} }
else else
{ {
@ -372,8 +372,8 @@ VECTOR2<T> VECTOR2<T>::Resize( T aNewLength ) const
std::sqrt( rescale( l_sq_new, (extended_type) x * x, l_sq_current ) ) ), std::sqrt( rescale( l_sq_new, (extended_type) x * x, l_sq_current ) ) ),
static_cast<T>( static_cast<T>(
( y < 0 ? -1 : 1 ) * ( y < 0 ? -1 : 1 ) *
std::sqrt( rescale( l_sq_new, (extended_type) y * y, l_sq_current ) ) ) std::sqrt( rescale( l_sq_new, (extended_type) y * y, l_sq_current ) )
* sign( aNewLength ) ); * sign( aNewLength ) ));
} }
} }