mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-26 07:54:36 +00:00
Keep ring buffer size unsigned.
This commit is contained in:
parent
81ae7c06b8
commit
7f10265e34
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user