This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: Floating point exception in strtod()
- From: Dave Nadler <drn at nadler dot com>
- To: newlib at sourceware dot org
- Date: Mon, 9 Apr 2018 08:18:01 -0400
- Subject: Re: Floating point exception in strtod()
- References: <dd5e98ea-8f39-1c4b-116c-37968cb3a52d@cornell.edu> <20180409095833.GA29031@calimero.vinschen.de>
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? I'm worrying about very
resource-constrained systems (like the one where I had to use strtod
instead of sscanf to fit into ROM)...
Thanks as always for your newlib work,
Best Regards, Dave
--
Dave Nadler, USA East Coast voice (978) 263-0097, drn@nadler.com, Skype
Dave.Nadler1