Bug fix for 64 bit HP-UX.
authorUlf Möller <ulf@openssl.org>
Thu, 1 Jun 2000 14:24:59 +0000 (14:24 +0000)
committerUlf Möller <ulf@openssl.org>
Thu, 1 Jun 2000 14:24:59 +0000 (14:24 +0000)
Submitted by: Karsten Spang <ks@bellesystems.com>

crypto/rsa/rsa_gen.c

index 95e636d..00c25ad 100644 (file)
@@ -95,7 +95,7 @@ RSA *RSA_generate_key(int bits, unsigned long e_value,
         * unsigned long can be larger */
        for (i=0; i<sizeof(unsigned long)*8; i++)
                {
-               if (e_value & (1<<i))
+               if (e_value & (1UL<<i))
                        BN_set_bit(rsa->e,i);
                }
 #else