diff --git a/libc/src/__support/high_precision_decimal.h b/libc/src/__support/high_precision_decimal.h index 2c5a349e4495e..6a22554165014 100644 --- a/libc/src/__support/high_precision_decimal.h +++ b/libc/src/__support/high_precision_decimal.h @@ -409,7 +409,8 @@ class HighPrecisionDecimal { result *= 10; ++cur_digit; } - return result + this->should_round_up(this->decimal_point, round); + return result + static_cast( + this->should_round_up(this->decimal_point, round)); } // Extra functions for testing. diff --git a/libc/test/src/__support/math_extras_test.cpp b/libc/test/src/__support/math_extras_test.cpp index 0047888965177..9f9036b9d5cdf 100644 --- a/libc/test/src/__support/math_extras_test.cpp +++ b/libc/test/src/__support/math_extras_test.cpp @@ -102,7 +102,7 @@ TYPED_TEST(LlvmLibcBitTest, CountZeros, UnsignedTypesNoBigInt) { } using UnsignedTypes = testing::TypeList< -#if defined(__SIZEOF_INT128__) +#if defined(LIBC_TYPES_HAS_INT128) __uint128_t, #endif unsigned char, unsigned short, unsigned int, unsigned long,