delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/12/04/15:02:22

From: afonso AT inesca DOT inesca DOT pt (Ernesto R. Afonso)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Problems with DJGPP V2.01 - atof() function
Date: Thu, 05 Dec 1996 01:25:54 GMT
Organization: Inesc - Aveiro Portugal
Lines: 26
Message-ID: <32a62231.3101120@news.ua.pt>
References: <329e68a5 DOT 10316617 AT news DOT ua DOT pt>
Reply-To: afonso AT inesca DOT inesca DOT pt
NNTP-Posting-Host: inside.inesca.pt
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

        Hi, All!

        Ok! Ok! Ok! I've already figured out the problem
was in conversion between double and int types. When I found
it I imediately put it in my code "(int)( ... +0.5)" to avoid 
this problem. Obviously, it is a simplest solution, but, it is not 
the solution to avoid this specific problem, the real reason
of my message. In fact, it is my contribution to help producing a  
more stable djgpp compiler.
        In my previous mail I wrote something else which nobody 
paid big attention to it, I wrote: 
 " I've made an upgrade of my application from V1.xx to V2.xx "
more precisely, in V1.xx I've used gcc v2.6.3 and DJGPP lib V1.12
where this type of conversions work properly. Now, with 
gcc V2.7.2.1 and DJGPP lib V2.01 it does not!!!
        Well, if it is not a problem in gcc compiler, I ask what has
changed since gcc V2.6.3 release?
        I still am not totally convinced, after all the explanations
that appeared in this news group.
       Tanks in advance!


Ernesto R. Afonso
Inesc - Aveiro   Portugal
e-Mail: afonso AT inesca DOT inesca DOT pt

- Raw text -


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