vector2d.h: fix for the fix of the awrning fix.

This commit is contained in:
jean-pierre charras 2023-05-21 16:05:44 +02:00
parent c08f482ed4
commit 52bf337b55
1 changed files with 2 additions and 2 deletions

View File

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