rsx/gtest: Fix unit tests build on GCC

This commit is contained in:
kd-11 2025-11-24 00:33:12 +03:00 committed by kd-11
parent 2c1d962bdc
commit 8495a138c6
2 changed files with 3 additions and 3 deletions

View File

@ -45,7 +45,7 @@ namespace rsx::assembler
auto create_if(u32 end, u32 _else = 0)
{
OPDEST dst{};
dst.opcode = RSX_FP_OPCODE_IFE;
dst.opcode = RSX_FP_OPCODE_IFE & 0x3Fu;
SRC1 src1{};
src1.else_offset = (_else ? _else : end) << 2;

View File

@ -306,7 +306,7 @@ namespace rsx
TEST(SimpleArray, Find)
{
const rsx::simple_array<u32> arr{
const rsx::simple_array<int> arr{
0, 1, 2, 3, 4, 5, 6, 7, 8, 9
};
@ -316,7 +316,7 @@ namespace rsx
TEST(SimpleArray, FindIf)
{
const rsx::simple_array<u32> arr{
const rsx::simple_array<int> arr{
0, 1, 2, 3, 4, 5, 6, 7, 8, 9
};