More build fixes

Fix another build warning on some platforms

Use an explicit cast from size_t to int to avoid warning.
This commit is contained in:
Daniel Koch 2017-03-03 10:34:07 -05:00
parent 0479437a5c
commit d9b7a850a8

View File

@ -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;