From: Dr. Stephen Henson Date: Thu, 5 May 2011 14:47:38 +0000 (+0000) Subject: Fix warning of signed/unsigned comparison. X-Git-Tag: OpenSSL-fips-2_0-rc1~469 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=8d3cdd5b58bcd5c30811f4c7792cf09c9dc86d12;p=oweals%2Fopenssl.git Fix warning of signed/unsigned comparison. --- diff --git a/crypto/bn/bn_gf2m.c b/crypto/bn/bn_gf2m.c index 6caf2888a6..5a13515c36 100644 --- a/crypto/bn/bn_gf2m.c +++ b/crypto/bn/bn_gf2m.c @@ -368,7 +368,7 @@ int BN_GF2m_mod(BIGNUM *r, const BIGNUM *a, const BIGNUM *p) bn_check_top(a); bn_check_top(p); ret = BN_GF2m_poly2arr(p, arr, sizeof(arr)/sizeof(arr[0])); - if (!ret || ret > sizeof(arr)/sizeof(arr[0])) + if (!ret || ret > (int)(sizeof(arr)/sizeof(arr[0]))) { BNerr(BN_F_BN_GF2M_MOD,BN_R_INVALID_LENGTH); return 0;