From 6cad1e7748db82559917d2c2b868c59389f7c750 Mon Sep 17 00:00:00 2001 From: p265186 Date: Thu, 25 Oct 2012 17:04:45 +0200 Subject: [PATCH] Fixed variable shadowing warning. --- library/PolyVoxCore/include/PolyVoxCore/Vector.inl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/library/PolyVoxCore/include/PolyVoxCore/Vector.inl b/library/PolyVoxCore/include/PolyVoxCore/Vector.inl index b6d92c15..f550a6ec 100644 --- a/library/PolyVoxCore/include/PolyVoxCore/Vector.inl +++ b/library/PolyVoxCore/include/PolyVoxCore/Vector.inl @@ -602,15 +602,15 @@ namespace PolyVox template inline void Vector::normalise(void) throw() { - double length = this->length(); + Type tLength = this->length(); //FIXME - throw div by zero exception? - if(length < 0.0001f) + if(tLength < 0.0001f) { return; } for(uint32_t ct = 0; ct < Size; ++ct) { - m_tElements[ct] /= static_cast(length); + m_tElements[ct] /= tLength; } } }//namespace PolyVox