This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc 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: Fix bz#9696: errno value of strtod


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


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