mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08: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;
|
if( *ptr == '\0' ) return buf;
|
||||||
while( *ptr != '\0' ) ptr++;
|
while( *ptr != '\0' ) ptr++;
|
||||||
ptr--;
|
ptr--;
|
||||||
while( *ptr == '0' && *ptr != ',' && *ptr != '.' ) ptr--;
|
while( *ptr == '0' ) ptr--;
|
||||||
if( *ptr != '.' && *ptr != ',' ) ptr++;
|
if( *ptr != '.' && *ptr != ',' ) ptr++;
|
||||||
*ptr = '\0';
|
*ptr = '\0';
|
||||||
return buf;
|
return buf;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user