Fix parent identifier extension to 64 bits.

Source location identifiers are signed 16 bits. Extending this value to
64 bits without first casting it to unsigned 16 bit caused bit extension
of the sign bit, making the value clash with "unselected" group
identifier.
This commit is contained in:
Bartosz Taudul 2020-01-19 15:25:45 +01:00
parent 55d03cb03e
commit 46dc85c10c

View File

@ -9187,7 +9187,7 @@ void View::DrawFindZone()
const auto parent = GetZoneParent( *ev.Zone(), m_worker.DecompressThread( ev.Thread() ) ); const auto parent = GetZoneParent( *ev.Zone(), m_worker.DecompressThread( ev.Thread() ) );
if( parent ) if( parent )
{ {
group = &m_findZone.groups[uint64_t( parent->SrcLoc() )]; group = &m_findZone.groups[uint64_t( uint16_t( parent->SrcLoc() ) )];
} }
else else
{ {