mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-11-09 23:57:45 +01:00
using unsigned int to solve C.I. detected issues
This commit is contained in:
@@ -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];
|
||||||
|
|||||||
Reference in New Issue
Block a user