diff --git a/compiler-rt/lib/scudo/standalone/combined.h b/compiler-rt/lib/scudo/standalone/combined.h index d514faa6a7acc7..85433155e2e2fc 100644 --- a/compiler-rt/lib/scudo/standalone/combined.h +++ b/compiler-rt/lib/scudo/standalone/combined.h @@ -1482,12 +1482,12 @@ class Allocator { } static typename AllocationRingBuffer::Entry * - getRingBufferEntry(char *RawRingBuffer, u32 N) { + getRingBufferEntry(char *RawRingBuffer, uptr N) { return &reinterpret_cast( &RawRingBuffer[sizeof(AllocationRingBuffer)])[N]; } static const typename AllocationRingBuffer::Entry * - getRingBufferEntry(const char *RawRingBuffer, u32 N) { + getRingBufferEntry(const char *RawRingBuffer, uptr N) { return &reinterpret_cast( &RawRingBuffer[sizeof(AllocationRingBuffer)])[N]; }