Fixed warning

This commit is contained in:
Christophe Riccio 2012-04-06 23:55:55 +01:00
parent cb017c5bca
commit 543062d325

View File

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