summaryrefslogtreecommitdiffstats
path: root/crypto/bn/bn_asm.c
diff options
context:
space:
mode:
authorNils Larsch <nils@openssl.org>2005-05-31 20:39:16 +0000
committerNils Larsch <nils@openssl.org>2005-05-31 20:39:16 +0000
commit88737991d2c88cd8d7bebe506f3c26531fa282e0 (patch)
tree760b9ba83077f13e2ee449b6160aa4f5a4fc6882 /crypto/bn/bn_asm.c
parent75c00536bae0ff7144d479932f73929a71c5ad2b (diff)
fix assertion
Diffstat (limited to 'crypto/bn/bn_asm.c')
-rw-r--r--crypto/bn/bn_asm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/bn/bn_asm.c b/crypto/bn/bn_asm.c
index be8aa3ffc5..19978085b2 100644
--- a/crypto/bn/bn_asm.c
+++ b/crypto/bn/bn_asm.c
@@ -237,7 +237,7 @@ BN_ULONG bn_div_words(BN_ULONG h, BN_ULONG l, BN_ULONG d)
if (d == 0) return(BN_MASK2);
i=BN_num_bits_word(d);
- assert((i == BN_BITS2) || (h > (BN_ULONG)1<<i));
+ assert((i == BN_BITS2) || (h <= (BN_ULONG)1<<i));
i=BN_BITS2-i;
if (h >= d) h-=d;