Mail Archives: djgpp/1999/03/01/06:30:49
On Mon, 1 Mar 1999, Carlos Giani_AEN2003 (M2003) wrote:
> Well, if you rewrite the above:
> y= (x) ? 1 : 2
>
> y will ALWAYS be 1, and NEVER 2. You have to correct it to:
>
> y= (x!=0) ? 1 : 2
I cannot reproduce this bug. Could you please post a *complete* program
that can be compiled and which exhibits this problem? Also, please tell
what version of the compiler are you using ("gcc --version" will print
it), and what command line you used to compile the program.
- Raw text -