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:
committed by
Alex von Gluck IV
parent
f566cf181a
commit
49e2b1f420
@@ -125,7 +125,7 @@ platform_allocate_region(void **_address, size_t size, uint8 /* protection */,
|
|||||||
memory_region *region = new(std::nothrow) memory_region {
|
memory_region *region = new(std::nothrow) memory_region {
|
||||||
next: allocated_regions,
|
next: allocated_regions,
|
||||||
vaddr: *_address == NULL ? 0 : (addr_t)*_address,
|
vaddr: *_address == NULL ? 0 : (addr_t)*_address,
|
||||||
paddr: addr,
|
paddr: (phys_addr_t)addr,
|
||||||
size: size
|
size: size
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -182,8 +182,8 @@ convert_physical_ranges()
|
|||||||
memory_region *region = new(std::nothrow) memory_region {
|
memory_region *region = new(std::nothrow) memory_region {
|
||||||
next: allocated_regions,
|
next: allocated_regions,
|
||||||
vaddr: 0,
|
vaddr: 0,
|
||||||
paddr: range[i].start,
|
paddr: (phys_addr_t)range[i].start,
|
||||||
size: range[i].size
|
size: (size_t)range[i].size
|
||||||
};
|
};
|
||||||
|
|
||||||
if (!region)
|
if (!region)
|
||||||
|
|||||||
Reference in New Issue
Block a user