Fix warning of signed/unsigned comparison.
authorDr. Stephen Henson <steve@openssl.org>
Thu, 5 May 2011 14:47:38 +0000 (14:47 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Thu, 5 May 2011 14:47:38 +0000 (14:47 +0000)
crypto/bn/bn_gf2m.c

index 6caf288..5a13515 100644 (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;