From b217e00dd9abc452495c121fd20560df0a93617a Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 18 Apr 2021 19:14:12 +0200 Subject: [PATCH] Hackfix support for UTF-8 in source files. --- server/TracySourceTokenizer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/TracySourceTokenizer.cpp b/server/TracySourceTokenizer.cpp index 7618faa6..2f07634d 100644 --- a/server/TracySourceTokenizer.cpp +++ b/server/TracySourceTokenizer.cpp @@ -124,7 +124,7 @@ std::vector Tokenizer::Tokenize( const char* begin, const char } else { - while( begin != end && isspace( *begin ) ) begin++; + while( begin != end && isspace( (uint8_t)*begin ) ) begin++; if( first && begin < end && *begin == '#' ) { if( *(end-1) == '\\' ) m_isInPreprocessor = true;