From 11bd3e0eeeea593cfa5829a06366664345a36470 Mon Sep 17 00:00:00 2001 From: negativeExponent Date: Thu, 20 May 2021 13:24:40 +0800 Subject: [PATCH] Silence warning [-Wsign-compare] --- src/libretro/UtilRetro.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;