Browse Source

Fixed warning with 64 bits values

Christophe Riccio 14 years ago
parent
commit
0ec9f1d443
1 changed files with 2 additions and 2 deletions
  1. 2 2
      glm/gtx/bit.inl

+ 2 - 2
glm/gtx/bit.inl

@@ -601,8 +601,8 @@ inline genType bitRevert(genType const & In)
 	genType Out = 0;
 	genType Out = 0;
 	std::size_t BitSize = sizeof(genType) * 8;
 	std::size_t BitSize = sizeof(genType) * 8;
 	for(std::size_t i = 0; i < BitSize; ++i)
 	for(std::size_t i = 0; i < BitSize; ++i)
-		if(In & (1 << i))
-			Out |= 1 << (BitSize - 1 - i);
+		if(In & (genType(1) << i))
+			Out |= genType(1) << (BitSize - 1 - i);
 	return Out;
 	return Out;
 }
 }