Skip to content

Commit b9ff9b1

Browse files
committed
Also fix sub_with_borrow.
1 parent 1e57b21 commit b9ff9b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libc/src/__support/math_extras.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ add_with_carry(T a, T b, T carry_in, T &carry_out) {
100100
template <typename T>
101101
[[nodiscard]] LIBC_INLINE constexpr cpp::enable_if_t<cpp::is_unsigned_v<T>, T>
102102
sub_with_borrow(T a, T b, T carry_in, T &carry_out) {
103-
if constexpr (!cpp::is_constant_evaluated()) {
103+
if (!cpp::is_constant_evaluated()) {
104104
#if __has_builtin(__builtin_subcb)
105105
RETURN_IF(unsigned char, __builtin_subcb)
106106
#elif __has_builtin(__builtin_subcs)

0 commit comments

Comments
 (0)