]> git.sur5r.net Git - u-boot/commitdiff
Fix mkimage -l bug with multifile images on 64bit platforms
authorWolfgang Denk <wd@pollux.denx.de>
Wed, 6 Sep 2006 21:29:15 +0000 (23:29 +0200)
committerWolfgang Denk <wd@pollux.denx.de>
Wed, 6 Sep 2006 21:29:15 +0000 (23:29 +0200)
Patch by David Updegraff, 06 Sep 2006

CHANGELOG
tools/mkimage.c

index a288465b3b964c94c2fbdd7351e2974bce2184ea..3c42d93fe84725f9a4cfab1178e92c9012a9bf41 100644 (file)
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -2,6 +2,9 @@
 Changes since U-Boot 1.1.4:
 ======================================================================
 
+* Fix mkimage -l bug with multifile images on 64bit platforms
+  Patch by David Updegraff, 06 Sep 2006
+
 * Fix build problems on sorcery board.
 
 * Fix coldfire build problems.
index fea3e5bc6b3079e3d2a915829f04a83c832797fb..60aac79f234ba750c8169b245bd68a8fd6e87a64 100644 (file)
@@ -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)
                                );