From 9f16d9e3e78e6c6d72ec3bc09ac7964b67736a8c Mon Sep 17 00:00:00 2001 From: Christophe Riccio Date: Sat, 12 Mar 2011 03:01:52 +0000 Subject: [PATCH] Fixed warning with Clang C++, ticket #71 --- glm/core/func_integer.inl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/glm/core/func_integer.inl b/glm/core/func_integer.inl index a07ed249..c5e6fe25 100644 --- a/glm/core/func_integer.inl +++ b/glm/core/func_integer.inl @@ -274,7 +274,7 @@ namespace glm Result |= (1 << (sizeof(genIUType) * 8 - 1)) & (1 << (Offset + Bits - 1)); genIUType Mask = 0; - for(std::size_t Bit = Offset; Bit < Bits; ++Bit) + for(int Bit = Offset; Bit < Bits; ++Bit) Mask |= (1 << Bit); return Result | ((Mask & Value) >> Offset); @@ -339,7 +339,7 @@ namespace glm return Base; genIUType Mask = 0; - for(std::size_t Bit = Offset; Bit < Offset + Bits; ++Bit) + for(int Bit = Offset; Bit < Offset + Bits; ++Bit) Mask |= (1 << Bit); return (Base & ~Mask) | (Insert & Mask);