Cast pointer through uintptr_t on the way to uint64_t to squelch a warning.

This commit is contained in:
ian 2016-01-02 22:55:59 +00:00
parent 165fa8904b
commit 8181b203c9

View File

@ -100,7 +100,7 @@ uboot_loadaddr(u_int type, void *data, uint64_t addr)
biggest_block = 0;
biggest_size = 0;
subldr = rounddown2((uint64_t)_start, KERN_ALIGN);
subldr = rounddown2((uint64_t)(uintptr_t)_start, KERN_ALIGN);
eubldr = roundup2((uint64_t)uboot_heap_end, KERN_ALIGN);
for (i = 0; i < si->mr_no; i++) {
if (si->mr[i].flags != MR_ATTR_DRAM)