This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Fix bz#9696: errno value of strtod
- From: Marek Polacek <mpolacek at redhat dot com>
- To: Andreas Jaeger <aj at suse dot de>
- Cc: libc-alpha at sourceware dot org
- Date: Tue, 05 Jul 2011 14:58:34 +0200
- Subject: Re: Fix bz#9696: errno value of strtod
- References: <201107051421.21385.aj@suse.de>
Hi!
On 07/05/2011 02:21 PM, Andreas Jaeger wrote:
> Here's a patch to fix strtod, it returned EDOM instead of ERANGE for
> underflow,
Yeah, I've recently tried to fix this one:
http://www.cygwin.com/ml/libc-alpha/2011-06/msg00100.html
Unfortunately, I didn't get any response. Now I see that I forgot to
update tst-strtod.c as well.
> 2011-07-05 Andreas Jaeger <aj@suse.de>
>
> [BZ#9696]
> * stdlib/strtod_l.c (round_and_return): Return ERANGE instead of
> EDOM.
Maybe s/Return/Set/? We actually still return 0.0. But that's just a nit.
Thanks,
Marek