[libc-commits] [libc] [libc][stdfix] Fix buildbot failure because of a typo. (PR #126291)
via libc-commits
libc-commits at lists.llvm.org
Fri Feb 7 11:20:58 PST 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libc
Author: Krishna Pandey (krishna2803)
<details>
<summary>Changes</summary>
Fix build-bot failure caused by #<!-- -->125356
---
Full diff: https://github.com/llvm/llvm-project/pull/126291.diff
1 Files Affected:
- (modified) libc/src/__support/fixed_point/fx_bits.h (+2-2)
``````````diff
diff --git a/libc/src/__support/fixed_point/fx_bits.h b/libc/src/__support/fixed_point/fx_bits.h
index 21985e644253441..b9c065a3226d1c0 100644
--- a/libc/src/__support/fixed_point/fx_bits.h
+++ b/libc/src/__support/fixed_point/fx_bits.h
@@ -188,8 +188,8 @@ countls(T f) {
constexpr int PADDING_LEN = CONTAIN_LEN - FXRep::TOTAL_LEN;
if constexpr (FXRep::SIGN_LEN != 0) {
- if (x < 0)
- x = bit_not(x);
+ if (f < 0)
+ f = bit_not(f);
}
BitType value_bits = FXBits(x)::get_bits();
``````````
</details>
https://github.com/llvm/llvm-project/pull/126291
More information about the libc-commits
mailing list