From abfa90012f72502de22aea3bd6bfdbe2a5f5dec8 Mon Sep 17 00:00:00 2001 From: Rokas Kupstys Date: Tue, 17 Jul 2018 15:59:00 +0300 Subject: [PATCH] Fix build errors with some compilers due to using std::max(float, double). --- server/TracyView.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 011097b9..24e62466 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -4035,7 +4035,7 @@ void View::DrawFindZone() { const auto pxns = numBins / dt; const auto nspx = 1.0 / pxns; - const auto scale = std::max( 0.0f, round( log10fast( nspx ) + 2 ) ); + const auto scale = std::max( 0.0f, round( log10fast( nspx ) + 2 ) ); const auto step = pow( 10, scale ); const auto dx = step * pxns; @@ -4838,7 +4838,7 @@ void View::DrawCompare() { const auto pxns = numBins / dt; const auto nspx = 1.0 / pxns; - const auto scale = std::max( 0.0f, round( log10fast( nspx ) + 2 ) ); + const auto scale = std::max( 0.0f, round( log10fast( nspx ) + 2 ) ); const auto step = pow( 10, scale ); const auto dx = step * pxns;