From c78f3b4e249e9acfabce2e0b48edbe2a8fa33224 Mon Sep 17 00:00:00 2001 From: lightningterror <18107717+lightningterror@users.noreply.github.com> Date: Wed, 5 Jul 2023 23:07:43 +0200 Subject: [PATCH] Savestate: Fix Wsign-compare warning. --- pcsx2/SaveState.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcsx2/SaveState.cpp b/pcsx2/SaveState.cpp index a8361f91f3..3225e5aabe 100644 --- a/pcsx2/SaveState.cpp +++ b/pcsx2/SaveState.cpp @@ -1044,7 +1044,7 @@ static bool LoadInternalStructuresState(zip_t* zf, s64 index) return false; std::vector buffer(zst.size); - if (zip_fread(zff.get(), buffer.data(), buffer.size()) != buffer.size()) + if (zip_fread(zff.get(), buffer.data(), buffer.size()) != static_cast(buffer.size())) return false; memLoadingState state(buffer);