fix assertion
authorNils Larsch <nils@openssl.org>
Tue, 31 May 2005 20:39:16 +0000 (20:39 +0000)
committerNils Larsch <nils@openssl.org>
Tue, 31 May 2005 20:39:16 +0000 (20:39 +0000)
crypto/bn/bn_asm.c

index be8aa3ffc5a4717cf43f81597f4f3a2f5d8a22bf..19978085b26a5506e4a61ba2850b2cc7be31f6c8 100644 (file)
@@ -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;