Fix a shitloads of warnings on VS
Former-commit-id: fca61118f4e0530ed2eaaf9ff96de29806aa5aa8
This commit is contained in:
@@ -109,13 +109,13 @@ namespace Nz
|
||||
template<typename T>
|
||||
T Vector3<T>::GetLength() const
|
||||
{
|
||||
return std::sqrt(GetSquaredLength());
|
||||
return static_cast<T>(std::sqrt(GetSquaredLength()));
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
float Vector3<T>::GetLengthf() const
|
||||
{
|
||||
return std::sqrt(static_cast<float>(GetSquaredLength()));
|
||||
return std::sqrt<float>(static_cast<float>(GetSquaredLength()));
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
|
||||
Reference in New Issue
Block a user