1
0
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:
Marcos Slomp 2024-10-09 16:43:24 -07:00 committed by GitHub
parent c03884d20c
commit aee9defb7b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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