[Python-checkins] r77714 - python/trunk/Python/dtoa.c
mark.dickinson
python-checkins at python.org
Sat Jan 23 22:25:53 CET 2010
Author: mark.dickinson
Date: Sat Jan 23 22:25:53 2010
New Revision: 77714
Log:
dtoa.c fix from upstream that fixes incorrectly rounded results for certain subnormals that are also halfway cases.
Modified:
python/trunk/Python/dtoa.c
Modified: python/trunk/Python/dtoa.c
==============================================================================
--- python/trunk/Python/dtoa.c (original)
+++ python/trunk/Python/dtoa.c Sat Jan 23 22:25:53 2010
@@ -2084,9 +2084,9 @@
if (!odd)
break;
if (dsign)
- dval(&rv) += ulp(&rv);
+ dval(&rv) += sulp(&rv, &bc);
else {
- dval(&rv) -= ulp(&rv);
+ dval(&rv) -= sulp(&rv, &bc);
if (!dval(&rv)) {
if (bc.nd >nd)
break;
More information about the Python-checkins
mailing list