diff --git a/library/PolyVoxCore/include/PolyVoxCore/Vector.inl b/library/PolyVoxCore/include/PolyVoxCore/Vector.inl index c6a7acd9..da8f8648 100644 --- a/library/PolyVoxCore/include/PolyVoxCore/Vector.inl +++ b/library/PolyVoxCore/include/PolyVoxCore/Vector.inl @@ -601,7 +601,7 @@ namespace PolyVox template inline void Vector::normalise(void) { - Type tLength = this->length(); + Type tLength = static_cast(this->length()); //FIXME - throw div by zero exception? if(tLength < 0.0001f) {