1
0
mirror of https://github.com/wolfpld/tracy synced 2025-05-07 15:33:52 +00:00

Fix logic snafu.

This commit is contained in:
Bartosz Taudul 2019-01-29 21:46:14 +01:00
parent a708bebbfd
commit 1b3f10148d

View File

@ -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;