removed unsigned tests < 0

This commit is contained in:
Janet B. Anderson
1993-07-20 08:41:42 +00:00
parent d92255f388
commit e6fdc911ae
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -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*/
+2 -2
View File
@@ -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*/