[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 11:28:54 PST 2025


================
@@ -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);
   }
----------------
nickdesaulniers wrote:

Also, please remove `{}` from `if constexpr`.
https://llvm.org/docs/CodingStandards.html#don-t-use-braces-on-simple-single-statement-bodies-of-if-else-loop-statements

https://github.com/llvm/llvm-project/pull/126291


More information about the libc-commits mailing list