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

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


Author: Guillaume Chatelet
Date: 2024-02-15T15:31:38+01:00
New Revision: 84165864d458edce750f3a10d5dbd348970893b6

URL: https://github.com/llvm/llvm-project/commit/84165864d458edce750f3a10d5dbd348970893b6
DIFF: https://github.com/llvm/llvm-project/commit/84165864d458edce750f3a10d5dbd348970893b6.diff

LOG: [libc][NFC] Fix missing replacement in BigInt (#81864)

Added: 
    

Modified: 
    libc/src/__support/UInt.h

Removed: 
    


################################################################################
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) {


        


More information about the libc-commits mailing list