www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/02/16/07:01:01

Date: Sun, 16 Feb 1997 13:40:06 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: nikki <nikki AT gameboutique DOT co>
cc: djgpp AT delorie DOT com
Subject: Re: weird gcc thing
In-Reply-To: <5e4dji$99q@flex.uunet.pipex.com>
Message-ID: <Pine.SUN.3.91.970216133807.15715E-100000@is>
MIME-Version: 1.0

On 15 Feb 1997, nikki wrote:

> is there any particular reason why :
> 
> double wib;
> 
> wib= (double) atof(argv[2]);
> 
> or
> 
> float wib;
> int a;
> 
> wib= (float) a;
> 
> should both give wrong values under djgpp?

Did you actually gave 2 arguments to your program?  argv[0] is the 
program name, argv[1] is the first argument.

If the above doesn't give a clue, post the shortest program you can craft 
that exhibits this bug and the command line you pass it.

- Raw text -


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