Merge pull request #748 from dgkoch/dgkoch_build_fixes2

More build fixes
This commit is contained in:
John Kessenich 2017-03-03 09:20:43 -07:00 committed by GitHub
commit c18cae2145

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;