From: Mike Frysinger Date: Wed, 23 Apr 2008 01:39:03 -0400 Subject: [U-Boot-Users] [PATCH v3] crc32: use uint32_t rather than unsigned long In-Reply-To: <200803311102.01628.vapier@gentoo.org> References: <1206908872-2141-1-git-send-email-vapier@gentoo.org> <200803302142.18994.vapier@gentoo.org> <200803311102.01628.vapier@gentoo.org> Message-ID: <200804230139.03856.vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Monday 31 March 2008, Mike Frysinger wrote: > The envcrc.c does sizeof(unsigned long) when calculating the crc, but this > is done with the build toolchain instead of the target toolchain, so if the > build is a 64bit system but the target is 32bits, the size will obviously > be wrong. This converts all unsigned long stuff related to crc32 to > uint32_t types. Compile tested only: output of ./tools/envcrc when run on a > 32bit build system matches that of a 64bit build system. ping -mike -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 827 bytes Desc: This is a digitally signed message part. Url : http://lists.denx.de/pipermail/u-boot/attachments/20080423/ec2c46bc/attachment.pgp