Fixed warning with 64 bits values

This commit is contained in:
Christophe Riccio 2011-03-18 01:50:40 +00:00
parent 04fdc2cc0e
commit 0ec9f1d443

View file

@ -601,8 +601,8 @@ inline genType bitRevert(genType const & In)
genType Out = 0;
std::size_t BitSize = sizeof(genType) * 8;
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;
}