int8_t typedef problem

Joel Sherrill joel.sherrill at OARcorp.com
Tue Jan 7 14:21:15 UTC 2003



Stephen Holford wrote:
> 
> Hi
> 
> We have come across an issue with the declaration of the int8_t type in
> include/machine/types.h originating from newlib (but patched for rtems
> with newlib-1.10.0-rtems-20021127.diff).
> 
> Currently it is defined as:
> 
> typedef char               int8_t;
> 
> The problem is that on some targets (like the powerpc) the default type
> for a char is unsigned. So the above should read:
> 
> typedef signed char      int8_t;
> 
> to ensure that there is no ambiguity.

Thanks.  What about the other intXX_t types?  Should they say signed?

> Steve
> ---------------------
> Steve Holford, Wescam

-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel at OARcorp.com                 On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
Support Available                (256) 722-9985



More information about the users mailing list