Re: reporting typedef errors automatically

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Harald van =?UTF-8?b?RMSzaw==?=

    Re: reporting typedef errors automatically

    On Thu, 29 May 2008 21:05:37 +0000, Jens Thoms Toerring wrote:
    Harald van Dijk <truedfx@gmail. comwrote:
    [ snip ]
    >And when int8_t and int16_t both exist, sizeof(int16_t) cannot possibly
    >be anything other than 2,
    [ snip ]
    But if you have e.g. a machine where CHAR_BITS is 16 wouldn't then
    sizeof(int16_t) be 1
    [ snip ]

    Correct. However, on a machine where CHAR_BIT is anything other than 8,
    int8_t cannot be defined. In other words, if int8_t exists, you already
    know that CHAR_BIT is equal to 8.
Working...