From d9b7a850a8d1994dace8b053cf3163ca80df2bf9 Mon Sep 17 00:00:00 2001 From: Daniel Koch Date: Fri, 3 Mar 2017 10:34:07 -0500 Subject: [PATCH] More build fixes Fix another build warning on some platforms Use an explicit cast from size_t to int to avoid warning. --- hlsl/hlslParseHelper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hlsl/hlslParseHelper.cpp b/hlsl/hlslParseHelper.cpp index 5ae9e742..fbd5ca2d 100755 --- a/hlsl/hlslParseHelper.cpp +++ b/hlsl/hlslParseHelper.cpp @@ -5178,7 +5178,7 @@ TType* HlslParseContext::getStructBufferContentType(const TType& type) const if (type.getBasicType() != EbtBlock) return nullptr; - const int memberCount = type.getStruct()->size(); + const int memberCount = (int)type.getStruct()->size(); assert(memberCount > 0); TType* contentType = (*type.getStruct())[memberCount-1].type;