diff --git a/hlsl/hlslParseHelper.cpp b/hlsl/hlslParseHelper.cpp index 2a793759a6d14242c7616bef73334b650f16c8ff..8ee8f9c7014dab06a9a343224aa721595dcf7b95 100755 --- a/hlsl/hlslParseHelper.cpp +++ b/hlsl/hlslParseHelper.cpp @@ -1346,7 +1346,7 @@ void HlslParseContext::decomposeSampleMethods(const TSourceLoc& loc, TIntermType const TSamplerDim dim = argTex->getType().getSampler().dim; - const int argSize = argAggregate->getSequence().size(); + const int argSize = (int)argAggregate->getSequence().size(); bool hasStatus = (argSize == (5+cmpValues) || argSize == (8+cmpValues)); bool hasOffset1 = false; bool hasOffset4 = false;