Browse Source

Fixed warning

Christophe Riccio 13 years ago
parent
commit
543062d325
1 changed files with 2 additions and 2 deletions
  1. 2 2
      test/gtx/gtx_integer.cpp

+ 2 - 2
test/gtx/gtx_integer.cpp

@@ -53,8 +53,8 @@ int test_nlz()
 {
 	int Error = 0;
 
-	for(std::size_t i = 1; i < 33; ++i)
-		Error += glm::nlz(i) == 31u - glm::findMSB(i) ? 0 : 1;
+	for(glm::uint i = 1; i < 33; ++i)
+		Error += glm::nlz(i) == glm::uint(31u) - glm::findMSB(i) ? 0 : 1;
 		//printf("%d, %d\n", glm::nlz(i), 31u - glm::findMSB(i));
 
 	return Error;