Fixed conversion warning.
This commit is contained in:
parent
2654783bed
commit
7eca9490de
@ -601,7 +601,7 @@ namespace PolyVox
|
||||
template <uint32_t Size, typename Type>
|
||||
inline void Vector<Size, Type>::normalise(void)
|
||||
{
|
||||
Type tLength = this->length();
|
||||
Type tLength = static_cast<Type>(this->length());
|
||||
//FIXME - throw div by zero exception?
|
||||
if(tLength < 0.0001f)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user