From 227e026dbf3b306ad018dc9467a539140734ada0 Mon Sep 17 00:00:00 2001 From: baldurk Date: Wed, 10 Feb 2016 19:41:29 +0100 Subject: [PATCH] MSVC warning fix - conversion from size_t to int, possible loss of data --- SPIRV/SpvBuilder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SPIRV/SpvBuilder.cpp b/SPIRV/SpvBuilder.cpp index bc405312..74ed611b 100644 --- a/SPIRV/SpvBuilder.cpp +++ b/SPIRV/SpvBuilder.cpp @@ -2121,7 +2121,7 @@ Id Builder::accessChainGetInferredType() if (accessChain.swizzle.size() == 1) type = getContainedTypeId(type); else if (accessChain.swizzle.size() > 1) - type = makeVectorType(getContainedTypeId(type), accessChain.swizzle.size()); + type = makeVectorType(getContainedTypeId(type), (int)accessChain.swizzle.size()); // dereference component selection if (accessChain.component)