diff --git a/src/libCom/cvtFast.c b/src/libCom/cvtFast.c index 9d5bb2abf..a46a60287 100644 --- a/src/libCom/cvtFast.c +++ b/src/libCom/cvtFast.c @@ -66,7 +66,7 @@ int cvtFloatToString( char *startAddr; /* can this routine handle this conversion */ - if (precision > 8 || precision < 0 || flt_value > 10000000.0) { + if (precision > 8 || flt_value > 10000000.0) { gcvt((double)flt_value,10,pstr_value); return((int)strlen(pstr_value)); /* gcvt from XPG2*/ @@ -142,7 +142,7 @@ int cvtDoubleToString( char *startAddr; /* can this routine handle this conversion */ - if (precision > 8 || precision<0 || flt_value>10000000.0) { + if (precision > 8 || flt_value>10000000.0) { gcvt((double)flt_value,10,pstr_value); return((int)strlen(pstr_value)); /* gcvt from XPG2*/ diff --git a/src/libCom/cvtFast/cvtFast.c b/src/libCom/cvtFast/cvtFast.c index 9d5bb2abf..a46a60287 100644 --- a/src/libCom/cvtFast/cvtFast.c +++ b/src/libCom/cvtFast/cvtFast.c @@ -66,7 +66,7 @@ int cvtFloatToString( char *startAddr; /* can this routine handle this conversion */ - if (precision > 8 || precision < 0 || flt_value > 10000000.0) { + if (precision > 8 || flt_value > 10000000.0) { gcvt((double)flt_value,10,pstr_value); return((int)strlen(pstr_value)); /* gcvt from XPG2*/ @@ -142,7 +142,7 @@ int cvtDoubleToString( char *startAddr; /* can this routine handle this conversion */ - if (precision > 8 || precision<0 || flt_value>10000000.0) { + if (precision > 8 || flt_value>10000000.0) { gcvt((double)flt_value,10,pstr_value); return((int)strlen(pstr_value)); /* gcvt from XPG2*/