[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-chat] Strange struct problem
From: |
Daniel O'Connor |
Subject: |
Re: [avr-chat] Strange struct problem |
Date: |
Fri, 9 Dec 2005 10:46:46 +1030 |
User-agent: |
KMail/1.8.2 |
On Fri, 9 Dec 2005 10:37, Daniel O'Connor wrote:
> If BREAKME is defined all the struct accesses return 255 instead of what
> they should be (I think :)
>
> I am wondering if there is some oddity with GCC optimising for <= 4 byte
> structs which unbreaks my code, but I can't see why it is broken.
This also happens with a construct like..
uint8_t buffer[5] = {
1, 2, 3, 4, 5};
If I change it to 4 bytes it works as I expect.
--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
-- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C
pgpAMq3c4G61k.pgp
Description: PGP signature
- [avr-chat] Strange struct problem, Daniel O'Connor, 2005/12/08
- Re: [avr-chat] Strange struct problem,
Daniel O'Connor <=
- Re: [avr-chat] Strange struct problem, Russell Shaw, 2005/12/08
- Re: [avr-chat] Strange struct problem, Daniel O'Connor, 2005/12/08
- RE: [avr-chat] Strange struct problem, Larry Barello, 2005/12/08
- RE: [avr-chat] Strange struct problem, Larry Barello, 2005/12/08
- Re: [avr-chat] Strange struct problem, Russell Shaw, 2005/12/08
- Re: [avr-chat] Strange struct problem, Daniel O'Connor, 2005/12/08
- RE: [avr-chat] Strange struct problem, Larry Barello, 2005/12/08
- Re: [avr-chat] Strange struct problem, Daniel O'Connor, 2005/12/08