From 8181b203c99cacfb8f5441650220d97ee6d4e587 Mon Sep 17 00:00:00 2001 From: ian Date: Sat, 2 Jan 2016 22:55:59 +0000 Subject: [PATCH] Cast pointer through uintptr_t on the way to uint64_t to squelch a warning. --- sys/boot/uboot/lib/copy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/boot/uboot/lib/copy.c b/sys/boot/uboot/lib/copy.c index 95a1b5e529f6..c0e8b81290bc 100644 --- a/sys/boot/uboot/lib/copy.c +++ b/sys/boot/uboot/lib/copy.c @@ -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)