Fix MSVC warnings

This commit is contained in:
Zhi Guan
2022-10-12 18:05:05 +08:00
parent 50cefed24a
commit e25f8b945e
15 changed files with 61 additions and 63 deletions

View File

@@ -83,7 +83,7 @@ int main(void)
sha384_finish(&ctx, dgst);
if (memcmp(dgstbuf, dgst, sizeof(dgst)) != 0) {
printf("sha384 test %lu failed\n", i+1);
printf("sha384 test %zu failed\n", i+1);
printf("%s\n", tests[i].dgsthex);
for (j = 0; j < sizeof(dgst); j++) {
printf("%02x", dgst[j]);
@@ -91,7 +91,7 @@ int main(void)
printf("\n");
err++;
} else {
printf("sha384 test %lu ok\n", i+1);
printf("sha384 test %zu ok\n", i+1);
}
}