summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2004-03-21 22:39:52 +0000
committerRichard Levitte <levitte@openssl.org>2004-03-21 22:39:52 +0000
commitec5d8a54e9ea80599bf67a7c9349b49d430dde62 (patch)
treef9aac7e22dc8611f666a83ad8236a6fadfed70d1 /crypto
parent18a6333180f2e49393276972fc43449a6e17ed45 (diff)
Remove a warning for conversion double->long. This has impacts on Windows.
PR: 849
Diffstat (limited to 'crypto')
-rw-r--r--crypto/bio/b_print.c4
1 files changed, 2 insertions, 2 deletions
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 */