MSVC warning fix - conversion from size_t to int, possible loss of data

This commit is contained in:
baldurk 2016-02-10 19:41:29 +01:00
parent 5184353326
commit 227e026dbf

View File

@ -2121,7 +2121,7 @@ Id Builder::accessChainGetInferredType()
if (accessChain.swizzle.size() == 1) if (accessChain.swizzle.size() == 1)
type = getContainedTypeId(type); type = getContainedTypeId(type);
else if (accessChain.swizzle.size() > 1) else if (accessChain.swizzle.size() > 1)
type = makeVectorType(getContainedTypeId(type), accessChain.swizzle.size()); type = makeVectorType(getContainedTypeId(type), (int)accessChain.swizzle.size());
// dereference component selection // dereference component selection
if (accessChain.component) if (accessChain.component)