From: Richard Levitte Date: Sun, 21 Mar 2004 22:39:52 +0000 (+0000) Subject: Remove a warning for conversion double->long. This has impacts on Windows. X-Git-Tag: OpenSSL_0_9_7e~130^2~46 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ec5d8a54e9ea80599bf67a7c9349b49d430dde62;p=openssl Remove a warning for conversion double->long. This has impacts on Windows. PR: 849 --- diff --git a/crypto/bio/b_print.c b/crypto/bio/b_print.c index 960a049bca..decefc2276 100644 --- a/crypto/bio/b_print.c +++ b/crypto/bio/b_print.c @@ -641,9 +641,9 @@ fmtfp( multiplying by a factor of 10 */ fracpart = roundv((pow10(max)) * (ufvalue - intpart)); - if (fracpart >= pow10(max)) { + if (fracpart >= (long)pow10(max)) { intpart++; - fracpart -= pow10(max); + fracpart -= (long)pow10(max); } /* convert integer part */