Fix MSVC build error due to sign mismatch.
BUG=dawn:219 Change-Id: I2560b6c82c60208d446f75bc829ed50078fde3c5 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/10762 Reviewed-by: Austin Eng <enga@chromium.org> Commit-Queue: Bryan Bernhart <bryan.bernhart@intel.com>
This commit is contained in:
parent
58e68e0665
commit
824424fa35
|
@ -338,7 +338,7 @@ namespace dawn_native { namespace d3d12 {
|
||||||
|
|
||||||
size_t Device::GetD3D12HeapTypeToIndex(D3D12_HEAP_TYPE heapType) const {
|
size_t Device::GetD3D12HeapTypeToIndex(D3D12_HEAP_TYPE heapType) const {
|
||||||
ASSERT(heapType > 0);
|
ASSERT(heapType > 0);
|
||||||
ASSERT(heapType <= kNumHeapTypes);
|
ASSERT(static_cast<uint32_t>(heapType) <= kNumHeapTypes);
|
||||||
return heapType - 1;
|
return heapType - 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue