From e6fdc911ae785228f54d835902553cb983a95fb3 Mon Sep 17 00:00:00 2001 From: "Janet B. Anderson" Date: Tue, 20 Jul 1993 08:41:42 +0000 Subject: [PATCH] removed unsigned tests < 0 --- src/libCom/cvtFast.c | 4 ++-- src/libCom/cvtFast/cvtFast.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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*/