From 46dc85c10c580c5cfb170f95545f65b4c7cd3e14 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 19 Jan 2020 15:25:45 +0100 Subject: [PATCH] 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. --- server/TracyView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index eba5e95c..ca856635 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -9187,7 +9187,7 @@ void View::DrawFindZone() const auto parent = GetZoneParent( *ev.Zone(), m_worker.DecompressThread( ev.Thread() ) ); if( parent ) { - group = &m_findZone.groups[uint64_t( parent->SrcLoc() )]; + group = &m_findZone.groups[uint64_t( uint16_t( parent->SrcLoc() ) )]; } else {