Fixed conversion warning.

This commit is contained in:
Daviw Williams 2012-11-16 10:40:21 +01:00
parent 2654783bed
commit 7eca9490de

View File

@ -601,7 +601,7 @@ namespace PolyVox
template <uint32_t Size, typename Type> template <uint32_t Size, typename Type>
inline void Vector<Size, Type>::normalise(void) inline void Vector<Size, Type>::normalise(void)
{ {
Type tLength = this->length(); Type tLength = static_cast<Type>(this->length());
//FIXME - throw div by zero exception? //FIXME - throw div by zero exception?
if(tLength < 0.0001f) if(tLength < 0.0001f)
{ {