mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-22 22:44:34 +00:00
Fix string iteration condition.
This commit is contained in:
parent
a2f0f7754d
commit
07fe1266b0
@ -3315,7 +3315,7 @@ static bool TokenizeNumber( const char*& begin, const char* end )
|
||||
{
|
||||
isBinary = true;
|
||||
begin++;
|
||||
while( begin < end && ( *begin == '0' || *begin == '1' ) || *begin == '\'' ) begin++;
|
||||
while( begin < end && ( ( *begin == '0' || *begin == '1' ) || *begin == '\'' ) ) begin++;
|
||||
}
|
||||
}
|
||||
if( !isBinary )
|
||||
@ -3374,7 +3374,7 @@ SourceView::TokenColor SourceView::IdentifyToken( const char*& begin, const char
|
||||
{
|
||||
const char* tmp = begin;
|
||||
begin++;
|
||||
while( begin < end && ( *begin >= 'a' && *begin <= 'z' ) || ( *begin >= 'A' && *begin <= 'Z' ) || ( *begin >= '0' && *begin <= '9' ) || *begin == '_' ) begin++;
|
||||
while( begin < end && ( ( *begin >= 'a' && *begin <= 'z' ) || ( *begin >= 'A' && *begin <= 'Z' ) || ( *begin >= '0' && *begin <= '9' ) || *begin == '_' ) ) begin++;
|
||||
if( begin - tmp <= 24 )
|
||||
{
|
||||
char buf[25];
|
||||
|
Loading…
Reference in New Issue
Block a user