Silence warning [-Wsign-compare]

This commit is contained in:
negativeExponent 2021-05-20 13:24:40 +08:00
parent 6afbc9a09c
commit 11bd3e0eee
1 changed files with 1 additions and 1 deletions

View File

@ -158,7 +158,7 @@ uint8_t *utilLoad(const char *file, bool (*accept)(const char *), uint8_t *data,
}
}
if (fread(image, 1, size, fp) != size) {
if (fread(image, 1, size, fp) != (size_t)size) {
log("Failed to read from %s", file);
fclose(fp);
return NULL;