www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/03/01/06:30:49

Date: Mon, 1 Mar 1999 11:47:19 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: "Carlos Giani_AEN2003 (M2003)" <DARKVALE AT pcc DOT tgm DOT ac DOT at>
cc: djgpp AT delorie DOT com
Subject: Re: BUG
In-Reply-To: <41E9C77ACC@pcc.tgm.ac.at>
Message-ID: <Pine.SUN.3.91.990301114539.2578d-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com

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 -


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