Detect and Report typedef Errors... What's This Doing?
<p>I was reading about making code more portable by using fixed-width integers. I found <a href="http://www.netrino.com/node/140" rel="nofollow">this</a> article which helped explain things, and at the end it suggests using this anonymous union to detect and report typedef errors:</p>

<pre><code>static union
{
    char   int8_t_incorrect[sizeof(  int8_t) == 1];
    char  uint8_t_incorrect[sizeof( uint8_t) == 1];
    char  int16_t_incorrect[sizeof( int16_t) == 2];
    char uint16_t_incorrect[sizeof(uint16_t) == 2];
    char  int32_t_incorrect[sizeof( int32_t) == 4];
    char uint32_t_incorrect[sizeof(uint32_t) == 4];
};
</code></pre>

<p>I'm a little lost and I was hoping someone could explain what this is doing?</p>
