[U-Boot-Users] [PATCH v3] crc32: use uint32_t rather than unsigned long

Jean-Christophe PLAGNIOL-VILLARD plagnioj at jcrosoft.com
Wed Apr 23 08:49:30 CEST 2008


On 11:02 Mon 31 Mar     , 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.
> 
> Signed-off-by: Mike Frysinger <vapier at gentoo.org>
> ---
Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj at jcrosoft.com>




More information about the U-Boot mailing list