Fix warning fix
This commit is contained in:
parent
502da2d03c
commit
c2e019b773
|
@ -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 ) ));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue