Fixed warning with Clang C++, ticket #71
This commit is contained in:
parent
b918e3ea3f
commit
9f16d9e3e7
@ -274,7 +274,7 @@ namespace glm
|
|||||||
Result |= (1 << (sizeof(genIUType) * 8 - 1)) & (1 << (Offset + Bits - 1));
|
Result |= (1 << (sizeof(genIUType) * 8 - 1)) & (1 << (Offset + Bits - 1));
|
||||||
|
|
||||||
genIUType Mask = 0;
|
genIUType Mask = 0;
|
||||||
for(std::size_t Bit = Offset; Bit < Bits; ++Bit)
|
for(int Bit = Offset; Bit < Bits; ++Bit)
|
||||||
Mask |= (1 << Bit);
|
Mask |= (1 << Bit);
|
||||||
|
|
||||||
return Result | ((Mask & Value) >> Offset);
|
return Result | ((Mask & Value) >> Offset);
|
||||||
@ -339,7 +339,7 @@ namespace glm
|
|||||||
return Base;
|
return Base;
|
||||||
|
|
||||||
genIUType Mask = 0;
|
genIUType Mask = 0;
|
||||||
for(std::size_t Bit = Offset; Bit < Offset + Bits; ++Bit)
|
for(int Bit = Offset; Bit < Offset + Bits; ++Bit)
|
||||||
Mask |= (1 << Bit);
|
Mask |= (1 << Bit);
|
||||||
|
|
||||||
return (Base & ~Mask) | (Insert & Mask);
|
return (Base & ~Mask) | (Insert & Mask);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user