[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
This commit is contained in:
Michael Jones 2023-08-09 13:15:19 -07:00
parent beae315238
commit 222d7cf17f

View File

@ -116,7 +116,7 @@ template <size_t Bits, bool Signed> struct BigInt {
return lo;
}
} else {
return (static_cast<T>(val[1]) << 64) + lo;
return static_cast<T>((static_cast<T>(val[1]) << 64) + lo);
}
}