diff --git a/src/libretro/UtilRetro.cpp b/src/libretro/UtilRetro.cpp index 17a729a4..9217d745 100644 --- a/src/libretro/UtilRetro.cpp +++ b/src/libretro/UtilRetro.cpp @@ -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;