[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] possible compiler/optimizer problem (?)

From: hanzl
Subject: Re: [avr-gcc-list] possible compiler/optimizer problem (?)
Date: Mon, 30 May 2005 20:41:35 +0200

>         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: ^=


reply via email to

[Prev in Thread] Current Thread [Next in Thread]