Browse Source

Fixed bitReverse function

Christophe Riccio 14 years ago
parent
commit
268ed351ef
1 changed files with 1 additions and 1 deletions
  1. 1 1
      glm/core/func_integer.inl

+ 1 - 1
glm/core/func_integer.inl

@@ -395,7 +395,7 @@ namespace glm
 			genIUType Out = 0;
 			genIUType Out = 0;
 			std::size_t BitSize = sizeof(genIUType) * 8;
 			std::size_t BitSize = sizeof(genIUType) * 8;
 			for(std::size_t i = 0; i < BitSize; ++i)
 			for(std::size_t i = 0; i < BitSize; ++i)
-				if(In & (genIUType(1) << i))
+				if(Value & (genIUType(1) << i))
 					Out |= genIUType(1) << (BitSize - 1 - i);
 					Out |= genIUType(1) << (BitSize - 1 - i);
 			return Out;
 			return Out;
 		}	
 		}