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`.
This commit is contained in:
HamsterCL
2026-10-11 04:35:18 -03:00
committed by GitHub
parent cb375ec35a
commit c0ebf22476
+2 -2
View File
@@ -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);
}
{