From ec1b6318e4d31e8dc7c62ef5bf9b63e0379cdc4b Mon Sep 17 00:00:00 2001 From: Kelvin Lee Date: Thu, 5 Nov 2020 22:06:38 +1100 Subject: [PATCH] Use size_t to receive result from fread()/ftell(). --- test/bin/json_process.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/bin/json_process.c b/test/bin/json_process.c index f7f46d0..fc98543 100644 --- a/test/bin/json_process.c +++ b/test/bin/json_process.c @@ -63,7 +63,7 @@ static const char *strip(char *str) { } static char *loadfile(FILE *file) { - long fsize, ret; + size_t fsize, ret; char *buf; fseek(file, 0, SEEK_END);