From c78c37d593293a6e7f94d52ccd402f4d2452f90a Mon Sep 17 00:00:00 2001 From: Piers Daniell Date: Wed, 20 Apr 2022 17:10:12 -0600 Subject: [PATCH] Fix 32-bit compilation warning There was a call to new[] in vktSpvAsmTrinaryMinMaxTests.cpp that used a 64-bit values as an allocation size, which is not the type the new operator expects when compiling for a 32-bit target. Add a cast to fix the warning. Affects: dEQP-VK.spirv_assembly.instruction.amd_trinary_minmax.* Components: Vulkan Change-Id: I0941033614d67530f6cc157b5923e47bdca5c5a9 --- .../modules/vulkan/spirv_assembly/vktSpvAsmTrinaryMinMaxTests.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/external/vulkancts/modules/vulkan/spirv_assembly/vktSpvAsmTrinaryMinMaxTests.cpp b/external/vulkancts/modules/vulkan/spirv_assembly/vktSpvAsmTrinaryMinMaxTests.cpp index 8c95e6c..a7802d2 100644 --- a/external/vulkancts/modules/vulkan/spirv_assembly/vktSpvAsmTrinaryMinMaxTests.cpp +++ b/external/vulkancts/modules/vulkan/spirv_assembly/vktSpvAsmTrinaryMinMaxTests.cpp @@ -719,7 +719,7 @@ tcu::TestStatus TrinaryMinMaxInstance::iterate (void) vk::BufferWithMemory inputBuffer {vkd, device, allocator, inputBufferInfo, vk::MemoryRequirement::HostVisible}; vk::BufferWithMemory outputBuffer {vkd, device, allocator, outputBufferInfo, vk::MemoryRequirement::HostVisible}; - std::unique_ptr referenceBuffer {new char[kOutputBufferSize]}; + std::unique_ptr referenceBuffer {new char[static_cast(kOutputBufferSize)]}; // Fill buffers with initial contents. auto& inputAlloc = inputBuffer.getAllocation(); -- 2.7.4