Date: Sun, 16 Feb 1997 13:40:06 +0200 (IST) From: Eli Zaretskii To: nikki cc: djgpp AT delorie DOT com Subject: Re: weird gcc thing In-Reply-To: <5e4dji$99q@flex.uunet.pipex.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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.