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:
parent
b3f54318e7
commit
0543f78881
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue