From: Dr. Stephen Henson Date: Thu, 12 May 2005 23:13:40 +0000 (+0000) Subject: Fix from HEAD. X-Git-Tag: BEN_FIPS_TEST_8~13 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c6012b252d7439d7cc92fa910a40469e90ce96df;p=openssl Fix from HEAD. --- diff --git a/crypto/bio/b_print.c b/crypto/bio/b_print.c index c2bb357b4c..165f046295 100644 --- a/crypto/bio/b_print.c +++ b/crypto/bio/b_print.c @@ -576,7 +576,7 @@ abs_val(LDOUBLE value) } static LDOUBLE -pow10(int in_exp) +pow_10(int in_exp) { LDOUBLE result = 1; while (in_exp) { @@ -639,11 +639,11 @@ fmtfp( /* we "cheat" by converting the fractional part to integer by multiplying by a factor of 10 */ - fracpart = roundv((pow10(max)) * (ufvalue - intpart)); + fracpart = roundv((pow_10(max)) * (ufvalue - intpart)); - if (fracpart >= (long)pow10(max)) { + if (fracpart >= (long)pow_10(max)) { intpart++; - fracpart -= (long)pow10(max); + fracpart -= (long)pow_10(max); } /* convert integer part */