Fix compiler warnings.
[openssl.git] / fips / cmac / fips_cmactest.c
index 5930b98484f38d8b4d992f6ff3cabe031a12c376..cc07265370b2b349f3f7efdfa77d60552e3293c0 100644 (file)
@@ -456,7 +456,7 @@ static int print_cmac_gen(const EVP_CIPHER *cipher, FILE *out,
                fputs("Error calculating CMAC\n", stderr);
                rc = 0;
                }
-       else if (Tlen > reslen)
+       else if (Tlen > (int)reslen)
                {
                fputs("Parameter error, Tlen > CMAC length\n", stderr);
                rc = 0;
@@ -491,7 +491,7 @@ static int print_cmac_ver(const EVP_CIPHER *cipher, FILE *out,
                fputs("Error calculating CMAC\n", stderr);
                rc = 0;
                }
-       else if (Tlen > reslen)
+       else if (Tlen > (int)reslen)
                {
                fputs("Parameter error, Tlen > CMAC length\n", stderr);
                rc = 0;