[libc-commits] [libc] [libc][stdfix] Fix buildbot failure because of a typo. (PR #126291)
Nick Desaulniers via libc-commits
libc-commits at lists.llvm.org
Fri Feb 7 12:30:42 PST 2025
================
@@ -187,12 +187,11 @@ countls(T f) {
constexpr int CONTAIN_LEN = cpp::numeric_limits<BitType>::digits;
constexpr int PADDING_LEN = CONTAIN_LEN - FXRep::TOTAL_LEN;
- if constexpr (FXRep::SIGN_LEN != 0) {
- if (x < 0)
- x = bit_not(x);
- }
+ if constexpr (FXRep::SIGN_LEN != 0)
+ if (f < 0)
+ f = bit_not(f);
- BitType value_bits = FXBits(x)::get_bits();
+ BitType value_bits = FXBits(f)::get_bits();
----------------
nickdesaulniers wrote:
Was `::` supposed to be `.`?
https://github.com/llvm/llvm-project/pull/126291
More information about the libc-commits
mailing list