mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-07-04 10:37:11 +02:00
using unsigned int to solve C.I. detected issues
This commit is contained in:
parent
2f8b38266c
commit
ed3d26311a
@ -141,7 +141,7 @@ std::string valueToString(double value, bool useSpecialFloats, unsigned int prec
|
|||||||
char buffer[32];
|
char buffer[32];
|
||||||
int len = -1;
|
int len = -1;
|
||||||
|
|
||||||
int length = (value==0.0)?1:(int)(std::floor(std::log10(std::abs(value)))+1);
|
unsigned int length = (value==0.0)?(unsigned int)1:(unsigned int)(std::floor(std::log10(std::abs(value)))+1);
|
||||||
if (length<1) length=1;
|
if (length<1) length=1;
|
||||||
|
|
||||||
char formatString[6];
|
char formatString[6];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user