Fix bz#9696: errno value of strtod

Andreas Jaeger aj@suse.de
Tue Jul 5 13:48:00 GMT 2011


Here's a patch to fix strtod, it returned EDOM instead of ERANGE for 
underflow,

Andreas

2011-07-05  Andreas Jaeger  <aj@suse.de>

	[BZ#9696]
	* stdlib/strtod_l.c (round_and_return): Return ERANGE instead of
	EDOM.
	* stdlib/tst-strtod.c: Add testcase.


-- 
 Andreas Jaeger, Program Manager openSUSE
  aj@{suse.com,opensuse.org} Twitter/Identica: jaegerandi
   SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
    GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 16746 (AG Nürnberg)
     GPG fingerprint = 93A3 365E CE47 B889 DF7F  FED1 389A 563C C272 A126
-------------- next part --------------
A non-text attachment was scrubbed...
Name: diff
Type: text/x-patch
Size: 1340 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20110705/f3376799/attachment.bin>


More information about the Libc-alpha mailing list