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

index 4487a77b34ead4b331214b6f0003a0af64eb0340..3ae3822bc2af8f312ffa9cc17939caf0a7f80929 100644 (file)
@@ -376,7 +376,7 @@ void bn_mul_part_recursive(BN_ULONG *r, BN_ULONG *a, BN_ULONG *b, int tn,
 
                /* The overflow will stop before we over write
                 * words we should not overwrite */
-               if (ln < c1)
+               if (ln < (BN_ULONG)c1)
                        {
                        do      {
                                p++;