mirror of
https://github.com/wolfpld/tracy
synced 2025-05-07 15:33:52 +00:00
Fix logic snafu.
This commit is contained in:
parent
a708bebbfd
commit
1b3f10148d
@ -180,7 +180,7 @@ static const char* RealToString( double val, bool separator )
|
||||
if( *ptr == '\0' ) return buf;
|
||||
while( *ptr != '\0' ) ptr++;
|
||||
ptr--;
|
||||
while( *ptr == '0' && *ptr != ',' && *ptr != '.' ) ptr--;
|
||||
while( *ptr == '0' ) ptr--;
|
||||
if( *ptr != '.' && *ptr != ',' ) ptr++;
|
||||
*ptr = '\0';
|
||||
return buf;
|
||||
|
Loading…
x
Reference in New Issue
Block a user