[compiler-rt] [scudo][NFC] Explicit type casting to avoid compiler warning (PR #83355)
Thurston Dang via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 28 15:33:21 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);
----------------
thurstond wrote:
These two lines are not equivalent. Should that be "Count = ..."?
https://github.com/llvm/llvm-project/pull/83355
More information about the llvm-commits
mailing list