summaryrefslogtreecommitdiff
path: root/tools/mkimage.c
diff options
context:
space:
mode:
authorWolfgang Denk <wd@pollux.denx.de>2006-09-06 23:29:15 +0200
committerWolfgang Denk <wd@pollux.denx.de>2006-09-06 23:29:15 +0200
commit0dab03ba8fb20ede7233f497b6c6db188986e7a8 (patch)
tree9d7445a7817730b8160640f22529f469adbcc160 /tools/mkimage.c
parentf60ba0d35e13e9dcf839d4563f9436d07468b1ef (diff)
Fix mkimage -l bug with multifile images on 64bit platforms
Patch by David Updegraff, 06 Sep 2006
Diffstat (limited to 'tools/mkimage.c')
-rw-r--r--tools/mkimage.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/mkimage.c b/tools/mkimage.c
index fea3e5bc6b..60aac79f23 100644
--- a/tools/mkimage.c
+++ b/tools/mkimage.c
@@ -632,7 +632,7 @@ print_header (image_header_t *hdr)
if (hdr->ih_type == IH_TYPE_MULTI || hdr->ih_type == IH_TYPE_SCRIPT) {
int i, ptrs;
uint32_t pos;
- unsigned long *len_ptr = (unsigned long *) (
+ uint32_t *len_ptr = (uint32_t *) (
(unsigned long)hdr + sizeof(image_header_t)
);