This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Floating point exception in strtod()


On Apr  9 08:18, Dave Nadler wrote:
> On 4/9/2018 5:58 AM, Corinna Vinschen wrote:
> > I applied a fix to newlib's strtod, to always use 64 bit ints in this
> > place.  This fixes the problem and no exception is raised.
> 
> I'm probably showing my ignorance here, but doesn't this risk dragging in
> 64-bit support where not otherwise needed?

Check the patch.  It uses 64 bit int only if the target has 64 bit double.

https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;a=commitdiff;h=27652b608db73eec39208ec3078d7f3a06c3286d


Corinna

-- 
Corinna Vinschen
Cygwin Maintainer
Red Hat

Attachment: signature.asc
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]