Re: GCC 4.7.2 error handling type short

2012-11-26 Thread Paul_Koning
On Nov 26, 2012, at 3:57 PM, Bill Beech (NJ7P) wrote: > I have run into a problem with both 4.6.1 and 4.7.2 of the gcc compiler > handling type short. Sizeof(unsigned short) returns a length of 2 as > expected, but when I use a union of a character buffer and some fields > including a unsigne

GCC 4.7.2 error handling type short

2012-11-26 Thread Bill Beech (NJ7P)
I have run into a problem with both 4.6.1 and 4.7.2 of the gcc compiler handling type short. Sizeof(unsigned short) returns a length of 2 as expected, but when I use a union of a character buffer and some fields including a unsigned short the value returned is 2 bytes but the buffer pointer is