platform/efi: Fix 'narrowing width' error under clang

Change-Id: I84d7fea03868aadd50ff03a79d7769bff56c84be
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3416
Reviewed-by: Fredrik Holmqvist <[email protected]>
This commit is contained in:
Alexander von Gluck IV
2020-11-25 19:33:53 +00:00
committed by Alex von Gluck IV
parent f566cf181a
commit 49e2b1f420
+3 -3
View File
@@ -125,7 +125,7 @@ platform_allocate_region(void **_address, size_t size, uint8 /* protection */,
memory_region *region = new(std::nothrow) memory_region {
next: allocated_regions,
vaddr: *_address == NULL ? 0 : (addr_t)*_address,
paddr: addr,
paddr: (phys_addr_t)addr,
size: size
};
@@ -182,8 +182,8 @@ convert_physical_ranges()
memory_region *region = new(std::nothrow) memory_region {
next: allocated_regions,
vaddr: 0,
paddr: range[i].start,
size: range[i].size
paddr: (phys_addr_t)range[i].start,
size: (size_t)range[i].size
};
if (!region)