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:
parent
0479437a5c
commit
d9b7a850a8
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue