Fixup shorten64-to-32 warning

Change-Id: I2995d11693f6f49f67b7d3a11dde8e3fdc8dc549
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/18401
Reviewed-by: David Neto <dneto@google.com>
This commit is contained in:
dan sinclair 2020-03-31 17:45:41 +00:00 committed by dan sinclair
parent 32a68fec42
commit 4493d13d49
1 changed files with 2 additions and 1 deletions

View File

@ -464,7 +464,8 @@ ast::type::Type* ParserImpl::ConvertType(
// Compute members // Compute members
std::vector<std::unique_ptr<ast::StructMember>> ast_members; std::vector<std::unique_ptr<ast::StructMember>> ast_members;
const auto members = struct_ty->element_types(); const auto members = struct_ty->element_types();
for (size_t member_index = 0; member_index < members.size(); ++member_index) { for (uint32_t member_index = 0; member_index < members.size();
++member_index) {
auto* ast_member_ty = ConvertType(type_mgr_->GetId(members[member_index])); auto* ast_member_ty = ConvertType(type_mgr_->GetId(members[member_index]));
if (ast_member_ty == nullptr) { if (ast_member_ty == nullptr) {
// Already emitted diagnostics. // Already emitted diagnostics.