Signedness error

This commit is contained in:
Willem Toorop 2017-09-28 15:13:57 +02:00
parent 15eec724a5
commit 52a4500792
1 changed files with 1 additions and 1 deletions

View File

@ -569,7 +569,7 @@ int parse_config_file(const char *fn, int report_open_failure)
}
rewind(fh);
read_sz = fread(config_file, 1, config_file_sz + 1, fh);
if (read_sz > config_file_sz || ferror(fh) || !feof(fh)) {
if (read_sz > (size_t)config_file_sz || ferror(fh) || !feof(fh)) {
fprintf( stderr, "An error occurred while reading \"%s\": %s\n"
, fn, strerror(errno));
fclose(fh);