stop warnings
authorDr. Stephen Henson <steve@openssl.org>
Thu, 21 Jul 2011 13:45:06 +0000 (13:45 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Thu, 21 Jul 2011 13:45:06 +0000 (13:45 +0000)
crypto/engine/eng_rsax.c

index 7c4fa713139a2bdf807bd6ca4dfba089a94418cb..72185d686bf436dcb7e7481501831e76b37758a6 100644 (file)
@@ -73,6 +73,7 @@
 #include <openssl/rsa.h>
 #endif
 #include <openssl/bn.h>
+#include <openssl/err.h>
 
 /* RSAX is available **ONLY* on x86_64 CPUs */
 #undef COMPILE_RSAX
@@ -284,7 +285,7 @@ static E_RSAX_MOD_CTX *e_rsax_get_ctx(RSA *rsa, int idx, BIGNUM* m)
            RSA_set_ex_data(rsa, rsax_ex_data_idx, hptr);
         }
 
-        if (hptr[idx].type == BN_num_bits(m))
+        if (hptr[idx].type == (UINT64)BN_num_bits(m))
             return hptr+idx;
 
         if (BN_num_bits(m) == 512) {