[libc-commits] [libc] [libc][NFC] fix int warnings in float conversion (PR #74379)

Nick Desaulniers via libc-commits libc-commits at lists.llvm.org
Mon Dec 4 16:20:48 PST 2023


================
@@ -121,6 +121,7 @@ template <size_t Bits, bool Signed> struct BigInt {
         return lo;
       }
     } else {
+      // TODO: silence shift warning
----------------
nickdesaulniers wrote:

then perhaps a pragma here disabling the warning is the best approach?

I guess the static_assert on line 30 would allow values like 128 or 256?

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


More information about the libc-commits mailing list