[compiler-rt] [scudo][NFC] Explicit type casting to avoid compiler warning (PR #83355)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 28 15:45:39 PST 2024
================
@@ -53,7 +53,7 @@ template <class SizeClassAllocator> struct TransferBatch {
void moveNToArray(CompactPtrT *Array, u16 N) {
DCHECK_LE(N, Count);
memcpy(Array, Batch + Count - N, sizeof(Batch[0]) * N);
- Count -= N;
+ Count -= static_cast<u16>(Count - N);
----------------
ChiaHungDuan wrote:
Fixed. Thanks for catching it
https://github.com/llvm/llvm-project/pull/83355
More information about the llvm-commits
mailing list