We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1e8adb8 + 3408868 commit 370051aCopy full SHA for 370051a
orc-rt/include/orc-rt/Math.h
@@ -25,7 +25,7 @@ template <typename T> constexpr bool isPowerOf2(T Val) noexcept {
25
26
/// Calculates the next power of 2.
27
template <typename T> constexpr T nextPowerOf2(T Val) noexcept {
28
- for (size_t I = 1; I < std::numeric_limits<T>::digits; I <<= 1)
+ for (std::size_t I = 1; I < std::numeric_limits<T>::digits; I <<= 1)
29
Val |= (Val >> I);
30
return Val + 1;
31
}
0 commit comments