fix warnings when building openssl with the following compiler options:
[openssl.git] / crypto / rsa / rsa_depr.c
index 73fa6eea90742cdca37555ad231110f91aa4f4ca..c5582b996d24cdf66426aaf9127c0dd3540c6039 100644 (file)
@@ -80,7 +80,7 @@ RSA *RSA_generate_key(int bits, unsigned long e_value,
 
        /* The problem is when building with 8, 16, or 32 BN_ULONG,
         * unsigned long can be larger */
-       for (i=0; i<sizeof(unsigned long)*8; i++)
+       for (i=0; i<(int)sizeof(unsigned long)*8; i++)
                {
                if (e_value & (1UL<<i))
                        BN_set_bit(e,i);