We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3173f4 commit a1c2928Copy full SHA for a1c2928
compiler-rt/lib/scudo/standalone/allocator_common.h
@@ -53,7 +53,7 @@ template <class SizeClassAllocator> struct TransferBatch {
53
void moveNToArray(CompactPtrT *Array, u16 N) {
54
DCHECK_LE(N, Count);
55
memcpy(Array, Batch + Count - N, sizeof(Batch[0]) * N);
56
- Count -= N;
+ Count = static_cast<u16>(Count - N);
57
}
58
u16 getCount() const { return Count; }
59
bool isEmpty() const { return Count == 0U; }
0 commit comments