From 115c51d3aed5f111434ef0550921ecc31ce6c252 Mon Sep 17 00:00:00 2001 From: DH Date: Wed, 9 Apr 2025 06:43:11 +0300 Subject: [PATCH] Fix GCC warning --- rpcs3/Emu/RSX/Program/CgBinaryProgram.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rpcs3/Emu/RSX/Program/CgBinaryProgram.h b/rpcs3/Emu/RSX/Program/CgBinaryProgram.h index 3095964cb..58d73646f 100644 --- a/rpcs3/Emu/RSX/Program/CgBinaryProgram.h +++ b/rpcs3/Emu/RSX/Program/CgBinaryProgram.h @@ -124,7 +124,7 @@ inline std::size_t validateCgBinaryProgram(std::span data) CgBinaryProgram header; std::memcpy(&header, data.data(), sizeof(header)); - if (header.profile != 7004 && header.profile != 7003) + if (header.profile != 7004u && header.profile != 7003u) { return 0; } @@ -145,7 +145,7 @@ inline std::size_t validateCgBinaryProgram(std::span data) return 0; } - if (header.profile == 7004) + if (header.profile == 7004u) { if (header.program + sizeof(CgBinaryFragmentProgram) > totalSize) {