From 0ec9f1d44308efb074b17b24b137f041744583fd Mon Sep 17 00:00:00 2001 From: Christophe Riccio Date: Fri, 18 Mar 2011 01:50:40 +0000 Subject: [PATCH] Fixed warning with 64 bits values --- glm/gtx/bit.inl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/glm/gtx/bit.inl b/glm/gtx/bit.inl index 13b35ac7..ae746282 100644 --- a/glm/gtx/bit.inl +++ b/glm/gtx/bit.inl @@ -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; }