VC++ warning.
authorUlf Möller <ulf@openssl.org>
Wed, 29 Sep 1999 22:11:06 +0000 (22:11 +0000)
committerUlf Möller <ulf@openssl.org>
Wed, 29 Sep 1999 22:11:06 +0000 (22:11 +0000)
crypto/bn/bn_div.c

index 6dd5d99..830da87 100644 (file)
@@ -238,7 +238,7 @@ int BN_div(BIGNUM *dv, BIGNUM *rm, const BIGNUM *num, const BIGNUM *divisor,
                        q=BN_MASK2;
                else
 #if defined(BN_LLONG) && defined(BN_DIV2W) && !defined(bn_div_words)
-                       q=((((BN_ULLONG)n0)<<BN_BITS2)|n1)/d0;
+                       q=(BN_ULONG)(((((BN_ULLONG)n0)<<BN_BITS2)|n1)/d0);
 #else
                        q=bn_div_words(n0,n1,d0);
 #endif