From 3404ee1690506952ace47092253a888aaa433aba Mon Sep 17 00:00:00 2001 From: Amer Koleci Date: Mon, 6 Nov 2017 19:58:20 +0100 Subject: [PATCH] Fix to_plain_buffer_length cast. --- spirv_hlsl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spirv_hlsl.cpp b/spirv_hlsl.cpp index f4e0c26f..e9884948 100644 --- a/spirv_hlsl.cpp +++ b/spirv_hlsl.cpp @@ -2486,7 +2486,7 @@ void CompilerHLSL::emit_access_chain(const Instruction &instruction) if (need_byte_access_chain) { - uint32_t to_plain_buffer_length = type.array.size(); + uint32_t to_plain_buffer_length = static_cast(type.array.size()); string base; if (to_plain_buffer_length != 0)