|
From: | Gary Douglas |
Subject: | Re: [avr-gcc-list] possible compiler/optimizer problem (?) |
Date: | Mon, 30 May 2005 12:49:33 -0600 |
User-agent: | Mozilla Thunderbird 1.0.2 (X11/20050317) |
Thanks everybody! Clearly I'm a hack ;-) I'll do some more reading... -Gary address@hidden wrote:
value != value;value = (!value); //This works...Are these not fundamentally the same?:-))) Nice pitfall. != is "not equal" comparison. Values are compared and the result od comparison is discarded. You should get warning about code which has no effect and also about comparison which is allways true. But this one is assignment: ^= Vaclav _______________________________________________ AVR-GCC-list mailing list address@hidden http://lists.nongnu.org/mailman/listinfo/avr-gcc-list !DSPAM:429b57de269511444160943!
-- Gary Douglas Manager - Network Products Pathway Connectivity Inc. Inglewood Plaza, Unit 103 1439 - 17 Avenue SE Calgary, Alberta Canada. T2G 1J9 +1.403.243-8110 x43 www.pathwayconnect.com
[Prev in Thread] | Current Thread | [Next in Thread] |