From 925493582cc6e0760df813a9897464c77d5c7b25 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Sat, 17 Sep 2011 06:48:58 +0000 Subject: sandbox: Use uintptr_t for 32/64-bit compatibility This fixes a problems when building on some 64-bit machines. Signed-off-by: Simon Glass --- common/cmd_mem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common/cmd_mem.c') diff --git a/common/cmd_mem.c b/common/cmd_mem.c index e84cc4e22d3..28476d750b0 100644 --- a/common/cmd_mem.c +++ b/common/cmd_mem.c @@ -937,7 +937,7 @@ int do_mem_mtest (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) if (readback != val) { printf ("\nMem error @ 0x%08X: " "found %08lX, expected %08lX\n", - (uint)addr, readback, val); + (uint)(uintptr_t)addr, readback, val); errs++; if (ctrlc()) { putc ('\n'); -- cgit v1.2.3