Make sure to compare unsigned against unsigned.
authorRichard Levitte <levitte@openssl.org>
Wed, 28 May 2003 10:34:29 +0000 (10:34 +0000)
committerRichard Levitte <levitte@openssl.org>
Wed, 28 May 2003 10:34:29 +0000 (10:34 +0000)
crypto/bn/bn_mul.c

index 4c413b3..6b633b9 100644 (file)
@@ -706,7 +706,7 @@ void bn_mul_part_recursive(BN_ULONG *r, BN_ULONG *a, BN_ULONG *b, int n,
 
                /* The overflow will stop before we over write
                 * words we should not overwrite */
-               if (ln < c1)
+               if (ln < (BN_ULONG)c1)
                        {
                        do      {
                                p++;