tests: Fix out-of-bounds access (#7085)

This commit is contained in:
Wunk 2023-10-22 11:07:06 -07:00 committed by GitHub
parent 4ac10c4a9d
commit 597297ffb4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -420,7 +420,7 @@ TEST_CASE("Address Register Offset", "[video_core][shader][shader_jit]") {
shader.shader_setup->uniforms.f[i] = {color_f24, color_f24, color_f24,
Pica::f24::One()};
f_uniforms[i] = {color, color, color, 1.f};
} else if (i >= 0x60 && i < 0x70) {
} else if (i >= 0x60 && i < 0x64) {
const u8 color = static_cast<u8>((i - 0x60) * 0x10);
shader.shader_setup->uniforms.i[i - 0x60] = {color, color, color, 255};
} else if (i >= 0x70 && i < 0x80) {