[U-Boot] [PATCH 1/3] Define uintptr_t as long int to simplify printf() format strings

Mike Frysinger vapier at gentoo.org
Fri Nov 4 03:01:24 CET 2011


On Thursday 03 November 2011 21:08:54 Simon Glass wrote:
> --- a/include/compiler.h
> +++ b/include/compiler.h
> 
>  /* Types for `void *' pointers. */
> -#if __WORDSIZE == 64
> +#if __WORDSIZE == 64 || __WORDSIZE == 32
>  typedef unsigned long int       uintptr_t;
> -#elif __WORDSIZE == 32
> -typedef unsigned int            uintptr_t;
>  #else
>  #error "__WORDSIZE has unexpected value"
>  #endif

i'd just delete the #if logic altogether considering we set up the values a 
few lines above
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20111103/cf3645e0/attachment.pgp 


More information about the U-Boot mailing list