[Python-checkins] r71306 - python/branches/py3k-short-float-repr/Python/dtoa.c
mark.dickinson
python-checkins at python.org
Mon Apr 6 14:28:57 CEST 2009
Author: mark.dickinson
Date: Mon Apr 6 14:28:57 2009
New Revision: 71306
Log:
Return -1.0, not 0.0, on strtod failure due to a failed malloc.
Modified:
python/branches/py3k-short-float-repr/Python/dtoa.c
Modified: python/branches/py3k-short-float-repr/Python/dtoa.c
==============================================================================
--- python/branches/py3k-short-float-repr/Python/dtoa.c (original)
+++ python/branches/py3k-short-float-repr/Python/dtoa.c Mon Apr 6 14:28:57 2009
@@ -1991,7 +1991,7 @@
if (se)
*se = (char *)s00;
errno = ENOMEM;
- return 0.0;
+ return -1.0;
}
static char *dtoa_result;
More information about the Python-checkins
mailing list