Fix warning of signed/unsigned comparison.

This commit is contained in:
Dr. Stephen Henson 2011-05-05 14:47:38 +00:00
parent 75359644d0
commit 8d3cdd5b58

View File

@ -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;