Unsigned vs. signed fixed.
authorRichard Levitte <levitte@openssl.org>
Thu, 19 Jun 2003 16:56:48 +0000 (16:56 +0000)
committerRichard Levitte <levitte@openssl.org>
Thu, 19 Jun 2003 16:56:48 +0000 (16:56 +0000)
crypto/ecdh/ech_ossl.c

index 6a8ed8464437394c5022ba3c7917c4ee77d596c3..c7633bac7f5ea15a2b3158f4b1dd50cc1df77d48 100644 (file)
@@ -173,7 +173,7 @@ static int ecdh_compute_key(void *out, size_t outlen, const EC_POINT *pub_key, E
                }
        
        memset(buf, 0, buflen - len);
-       if (len != BN_bn2bin(x, buf + buflen - len))
+       if (len != (size_t)BN_bn2bin(x, buf + buflen - len))
                {
                ECDHerr(ECDH_F_ECDH_COMPUTE_KEY,ERR_R_BN_LIB);
                goto err;