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

Simon Glass sjg at chromium.org
Fri Nov 4 17:39:00 CET 2011


On Thu, Nov 3, 2011 at 7:01 PM, Mike Frysinger <vapier at gentoo.org> wrote:
> 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
>

OK will do in v3 - Simon


More information about the U-Boot mailing list