Use size_t to receive result from fread()/ftell().

This commit is contained in:
Kelvin Lee 2020-11-05 22:06:38 +11:00
parent 1d8201c656
commit ec1b6318e4

View File

@ -63,7 +63,7 @@ static const char *strip(char *str) {
} }
static char *loadfile(FILE *file) { static char *loadfile(FILE *file) {
long fsize, ret; size_t fsize, ret;
char *buf; char *buf;
fseek(file, 0, SEEK_END); fseek(file, 0, SEEK_END);