From c25832ad144b38cbd443ac85062a7ceb14e2960c Mon Sep 17 00:00:00 2001 From: Jacob Barthelmeh Date: Tue, 22 Aug 2017 09:47:55 -0600 Subject: [PATCH] type cast the return of fread --- wolfcrypt/test/test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wolfcrypt/test/test.c b/wolfcrypt/test/test.c index 2143e0850..f9cf28c0a 100644 --- a/wolfcrypt/test/test.c +++ b/wolfcrypt/test/test.c @@ -10489,7 +10489,7 @@ static int ecc_test_make_pub(WC_RNG* rng) goto exit_ecc_make_pub; } - tmpSz = fread(tmp, 1, FOURK_BUF, file); + tmpSz = (word32)fread(tmp, 1, FOURK_BUF, file); fclose(file); #endif /* USE_CERT_BUFFERS_256 */