www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/03/01/07:51:37

Message-ID: <8D53104ECD0CD211AF4000A0C9D60AE35C1E97@probe-2.acclaim-euro.net>
From: Shawn Hargreaves <ShawnH AT Probe DOT co DOT uk>
To: djgpp AT delorie DOT com
Subject: Re: BUG
Date: Mon, 1 Mar 1999 12:05:34 -0000
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.0.1460.8)
Reply-To: djgpp AT delorie DOT com

Carlos Giani_AEN2003 (M2003) writes:
> 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

Sorry, but I don't believe you :-) I'm willing to bet that this is
in fact an error somewhere else in your code, rather than in the
compiler. Can you post a complete (small, but runnable) program
that demonstrates your problem?


	Shawn Hargreaves.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019