Commit d9b7a850 by Daniel Koch

More build fixes

Fix another build warning on some platforms Use an explicit cast from size_t to int to avoid warning.
parent 0479437a
...@@ -5178,7 +5178,7 @@ TType* HlslParseContext::getStructBufferContentType(const TType& type) const ...@@ -5178,7 +5178,7 @@ TType* HlslParseContext::getStructBufferContentType(const TType& type) const
if (type.getBasicType() != EbtBlock) if (type.getBasicType() != EbtBlock)
return nullptr; return nullptr;
const int memberCount = type.getStruct()->size(); const int memberCount = (int)type.getStruct()->size();
assert(memberCount > 0); assert(memberCount > 0);
TType* contentType = (*type.getStruct())[memberCount-1].type; TType* contentType = (*type.getStruct())[memberCount-1].type;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment