mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-01-24 17:40:33 +01:00
Fix GCC warning
This commit is contained in:
parent
8234d1b470
commit
115c51d3ae
|
|
@ -124,7 +124,7 @@ inline std::size_t validateCgBinaryProgram(std::span<const std::byte> 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<const std::byte> data)
|
|||
return 0;
|
||||
}
|
||||
|
||||
if (header.profile == 7004)
|
||||
if (header.profile == 7004u)
|
||||
{
|
||||
if (header.program + sizeof(CgBinaryFragmentProgram) > totalSize)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue