mirror of
https://github.com/KytyPS5/KytyPS5.git
synced 2026-10-20 10:56:58 +02:00
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:
@@ -17925,9 +17925,9 @@ public:
|
|||||||
captured.mip_layout[0].pitch == 512 &&
|
captured.mip_layout[0].pitch == 512 &&
|
||||||
captured.mip_layout[0].height == 512,
|
captured.mip_layout[0].height == 512,
|
||||||
"R64 BC1 texture lost its compressed blocks or array stride");
|
"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);
|
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user