Skip to content

Commit a1c2928

Browse files
committed
[scudo][NFC] Explicit type casting to avoid compiler warning
1 parent d3173f4 commit a1c2928

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler-rt/lib/scudo/standalone/allocator_common.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ template <class SizeClassAllocator> struct TransferBatch {
5353
void moveNToArray(CompactPtrT *Array, u16 N) {
5454
DCHECK_LE(N, Count);
5555
memcpy(Array, Batch + Count - N, sizeof(Batch[0]) * N);
56-
Count -= N;
56+
Count = static_cast<u16>(Count - N);
5757
}
5858
u16 getCount() const { return Count; }
5959
bool isEmpty() const { return Count == 0U; }

0 commit comments

Comments
 (0)