mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
fix upper limit of unique source locations wrt manual
This commit is contained in:
parent
c03884d20c
commit
aee9defb7b
@ -3298,7 +3298,7 @@ int16_t Worker::ShrinkSourceLocationReal( uint64_t srcloc )
|
||||
|
||||
int16_t Worker::NewShrinkedSourceLocation( uint64_t srcloc )
|
||||
{
|
||||
assert( m_data.sourceLocationExpand.size() < std::numeric_limits<int16_t>::max() );
|
||||
assert( m_data.sourceLocationExpand.size() < std::numeric_limits<uint16_t>::max() );
|
||||
const auto sz = int16_t( m_data.sourceLocationExpand.size() );
|
||||
m_data.sourceLocationExpand.push_back( srcloc );
|
||||
#ifndef TRACY_NO_STATISTICS
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user