blob: ef97121ff97f0c4fcd1c0952227e8532f215a77b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
--- glm/gtx/bit.inl
+++ glm/gtx/bit.inl
@@ -576,7 +576,7 @@
assert(ToBit <= sizeof(genIUType) * std::size_t(8));
genIUType Result = Value;
- for(std::size_t i = 0; i <= ToBit; ++i)
+ for(int i = 0; i <= ToBit; ++i)
Result |= (1 << i);
return Result;
}
@@ -593,7 +593,7 @@
assert(ToBit <= sizeof(genIUType) * std::size_t(8));
genIUType Result = Value;
- for(std::size_t i = 0; i <= ToBit; ++i)
+ for(int i = 0; i <= ToBit; ++i)
Result &= ~(1 << i);
return Result;
}
|