[libc-commits] [libc] [libc][NFC] Fix missing replacement in BigInt (PR #81864)

via libc-commits libc-commits at lists.llvm.org
Thu Feb 15 06:25:17 PST 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-libc

Author: Guillaume Chatelet (gchatelet)

<details>
<summary>Changes</summary>



---
Full diff: https://github.com/llvm/llvm-project/pull/81864.diff


1 Files Affected:

- (modified) libc/src/__support/UInt.h (+1-1) 


``````````diff
diff --git a/libc/src/__support/UInt.h b/libc/src/__support/UInt.h
index 0828a34ba1a934..a1e9c4cda4e163 100644
--- a/libc/src/__support/UInt.h
+++ b/libc/src/__support/UInt.h
@@ -65,7 +65,7 @@ struct BigInt {
         val[i] = other[i];
     } else {
       size_t i = 0;
-      for (; i < OtherBits / 64; ++i)
+      for (; i < OtherBits / WORD_SIZE; ++i)
         val[i] = other[i];
       WordType sign = 0;
       if constexpr (Signed && OtherSigned) {

``````````

</details>


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


More information about the libc-commits mailing list