diff options
author | Simon Glass <sjg@chromium.org> | 2011-09-17 06:48:58 +0000 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2011-10-17 23:56:59 +0200 |
commit | 925493582cc6e0760df813a9897464c77d5c7b25 (patch) | |
tree | f7553c24f068c0c18601b1e6d6abf8ed8525b7b8 /common/cmd_mem.c | |
parent | c861fbf74784fdd27a5a73dec1f5c37e1bb7297e (diff) | |
download | u-boot-imx-925493582cc6e0760df813a9897464c77d5c7b25.zip u-boot-imx-925493582cc6e0760df813a9897464c77d5c7b25.tar.gz u-boot-imx-925493582cc6e0760df813a9897464c77d5c7b25.tar.bz2 |
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 <sjg@chromium.org>
Diffstat (limited to 'common/cmd_mem.c')
-rw-r--r-- | common/cmd_mem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/cmd_mem.c b/common/cmd_mem.c index e84cc4e..28476d7 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'); |