Keep ring buffer size unsigned.

This commit is contained in:
Bartosz Taudul 2021-12-21 20:24:52 +01:00
parent 81ae7c06b8
commit 7f10265e34
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -6,7 +6,7 @@ namespace tracy
class RingBuffer
{
public:
RingBuffer( int size, int fd, int id, int cpu = -1 )
RingBuffer( unsigned int size, int fd, int id, int cpu = -1 )
: m_size( size )
, m_id( id )
, m_cpu( cpu )
@ -117,7 +117,7 @@ private:
std::atomic_store_explicit( (volatile std::atomic<uint64_t>*)&m_metadata->data_tail, m_tail, std::memory_order_release );
}
int m_size;
unsigned int m_size;
uint64_t m_tail;
char* m_buffer;
int m_id;