From 222d7cf17f4db0d53eec006ebe5e7ff2562a0ee3 Mon Sep 17 00:00:00 2001 From: Michael Jones Date: Wed, 9 Aug 2023 13:15:19 -0700 Subject: [PATCH] [libc][NFC] Fix warning in uint operator T This code is creating a warning on Fuchsia, this patch should fix that warning. Reviewed By: mcgrathr Differential Revision: https://reviews.llvm.org/D157546 --- libc/src/__support/UInt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libc/src/__support/UInt.h b/libc/src/__support/UInt.h index ffb3a12e2a8d..507b8587006f 100644 --- a/libc/src/__support/UInt.h +++ b/libc/src/__support/UInt.h @@ -116,7 +116,7 @@ template struct BigInt { return lo; } } else { - return (static_cast(val[1]) << 64) + lo; + return static_cast((static_cast(val[1]) << 64) + lo); } }