Fix -Wc++11-narrowing on ChromeOS

Bug: chromium:1064305

Change-Id: Ie34022633a708eb685138a3df004a65138139caf
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/19283
Reviewed-by: Austin Eng <enga@chromium.org>
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
Corentin Wallez 2020-04-13 17:10:33 +00:00 committed by Commit Bot service account
parent b3f54318e7
commit 0543f78881
1 changed files with 2 additions and 1 deletions

View File

@ -180,7 +180,8 @@ namespace dawn_native { namespace vulkan { namespace external_memory {
if (memoryTypeIndex == -1) { if (memoryTypeIndex == -1) {
return DAWN_VALIDATION_ERROR("Unable to find appropriate memory type for import"); return DAWN_VALIDATION_ERROR("Unable to find appropriate memory type for import");
} }
MemoryImportParams params = {memoryRequirements.size, memoryTypeIndex}; MemoryImportParams params = {memoryRequirements.size,
static_cast<uint32_t>(memoryTypeIndex)};
return params; return params;
} }