From c0ebf224769b146b453e8d61521af345d5e660d5 Mon Sep 17 00:00:00 2001 From: HamsterCL Date: Sun, 11 Oct 2026 04:35:18 -0300 Subject: [PATCH] tests: rename a local that collides with the Windows small macro (#1400) windows.h pulls in rpcndr.h, which defines `small` as `char`. The R64 BC1 array case added in b7b335ac declared `const auto small`, so the Windows build of shader_recompiler_compute_tests failed to compile: ShaderRecompilerComputeTests.cpp(17928,24): error: expected unqualified-id Rename the local to `small_array`. --- tests/ShaderRecompilerComputeTests.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/ShaderRecompilerComputeTests.cpp b/tests/ShaderRecompilerComputeTests.cpp index a2f39402f..f5d60f009 100644 --- a/tests/ShaderRecompilerComputeTests.cpp +++ b/tests/ShaderRecompilerComputeTests.cpp @@ -17925,9 +17925,9 @@ public: captured.mip_layout[0].pitch == 512 && captured.mip_layout[0].height == 512, "R64 BC1 texture lost its compressed blocks or array stride"); - const auto small = + const auto small_array = MakeTilingImage(format, 67, 51, 1, layers, tile, 0, false); - check_round_trip("R64 BC1 array", small.data.size, small); + check_round_trip("R64 BC1 array", small_array.data.size, small_array); } {