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 4c413b3a5283defb4b850f8df17c4c0a2cfe491f..6b633b90b021f2f88ee74266c360b15f5ae5b87c 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++;