From 7d57a2ea6d7d22d9d74d79a843323d4838e049ff Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Wed, 13 May 2020 18:38:40 +0200 Subject: [PATCH] Cast to correct type. --- server/TracySourceView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/TracySourceView.cpp b/server/TracySourceView.cpp index ea8db13f..8608d479 100644 --- a/server/TracySourceView.cpp +++ b/server/TracySourceView.cpp @@ -2338,7 +2338,7 @@ void SourceView::RenderAsmLine( AsmLine& line, uint32_t ipcnt, uint32_t iptotal, char buf[256]; if( m_asmCountBase >= 0 ) { - sprintf( buf, "[%i]", asmIdx - m_asmCountBase ); + sprintf( buf, "[%i]", int( asmIdx - m_asmCountBase ) ); } else if( m_asmRelative ) {