Fix bz#9696: errno value of strtod

Marek Polacek mpolacek@redhat.com
Tue Jul 5 19:41:00 GMT 2011


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



More information about the Libc-alpha mailing list