diff --git a/server/TracyWorker.cpp b/server/TracyWorker.cpp index 9a813bde..fe92a963 100644 --- a/server/TracyWorker.cpp +++ b/server/TracyWorker.cpp @@ -1509,7 +1509,7 @@ void Worker::ProcessZoneEnd( const QueueZoneEnd& ev ) it->second.total += timeSpan; for( auto& v : zone->child ) { - const auto childSpan = std::max( 0ll, v->end - v->start ); + const auto childSpan = std::max( int64_t( 0 ), v->end - v->start ); timeSpan -= childSpan; } it->second.selfTotal += timeSpan; @@ -2103,7 +2103,7 @@ void Worker::ReadTimeline( FileRead& f, Vector& vec, uint16_t thread it->second.total += timeSpan; for( auto& v : zone->child ) { - const auto childSpan = std::max( 0ll, v->end - v->start ); + const auto childSpan = std::max( int64_t( 0 ), v->end - v->start ); timeSpan -= childSpan; } it->second.selfTotal += timeSpan;