Skip to content

Commit

Permalink
minor: fix signed/unsigned comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
obones committed Jan 11, 2023
1 parent 82dc3cc commit 4bb48c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/confparse.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ char *readconf(char const *path)

size_t n_read = fread(conf, sizeof(char), file_size, fp);
fclose(fp);
if (n_read != file_size) {
if (n_read != (size_t)file_size) {
fprintf(stderr, "Failed to read \"%s\"\n", path);
free(conf);
return NULL;
Expand Down

0 comments on commit 4bb48c9

Please sign in to comment.