Skip to content

Commit 370051a

Browse files
lhamesgithub-actions[bot]
authored andcommitted
Automerge: [orc-rt] Replace size_t with std::size_t in Math.h. (Fixes unit test on Linux)
2 parents 1e8adb8 + 3408868 commit 370051a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

orc-rt/include/orc-rt/Math.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ template <typename T> constexpr bool isPowerOf2(T Val) noexcept {
2525

2626
/// Calculates the next power of 2.
2727
template <typename T> constexpr T nextPowerOf2(T Val) noexcept {
28-
for (size_t I = 1; I < std::numeric_limits<T>::digits; I <<= 1)
28+
for (std::size_t I = 1; I < std::numeric_limits<T>::digits; I <<= 1)
2929
Val |= (Val >> I);
3030
return Val + 1;
3131
}

0 commit comments

Comments
 (0)