Skip to content

Commit eb97599

Browse files
authored
[libc][NFC] Add missing constexpr (#82007)
This is a fix forward for the Fuchsia build bot https://lab.llvm.org/buildbot/#/builders/98/builds/33515
1 parent 58946ee commit eb97599

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libc/src/__support/number_pair.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ template <typename T> struct NumberPair {
2121
};
2222

2323
template <typename T>
24-
cpp::enable_if_t<cpp::is_integral_v<T> && cpp::is_unsigned_v<T>, NumberPair<T>>
25-
split(T a) {
24+
cpp::enable_if_t<cpp::is_integral_v<T> && cpp::is_unsigned_v<T>,
25+
NumberPair<T>> constexpr split(T a) {
2626
constexpr size_t HALF_BIT_WIDTH = sizeof(T) * 4;
2727
constexpr T LOWER_HALF_MASK = (T(1) << HALF_BIT_WIDTH) - T(1);
2828
NumberPair<T> result;

0 commit comments

Comments
 (0)