[Python-checkins] r70799 - python/branches/py3k-short-float-repr/Python/pystrtod.c
mark.dickinson
python-checkins at python.org
Tue Mar 31 15:08:12 CEST 2009
Author: mark.dickinson
Date: Tue Mar 31 15:08:12 2009
New Revision: 70799
Log:
Add some debugging code for IA64 buildbot failure.
Modified:
python/branches/py3k-short-float-repr/Python/pystrtod.c
Modified: python/branches/py3k-short-float-repr/Python/pystrtod.c
==============================================================================
--- python/branches/py3k-short-float-repr/Python/pystrtod.c (original)
+++ python/branches/py3k-short-float-repr/Python/pystrtod.c Tue Mar 31 15:08:12 2009
@@ -520,11 +520,19 @@
}
strncpy(buf, "inf", 3);
buf += 3;
- } else {
- assert(digits[0] == 'n' || digits[0] == 'N');
+ }
+ else if (digits[0] == 'n' || digits[0] == 'N') {
strncpy(buf, "nan", 3);
buf += 3;
}
+ else {
+ /* shouldn't get here: Gay's code should always return
+ something starting with a digit, an 'I', or an
+ 'N' */
+ printf("Help! dtoa returned: %.*s\n",
+ (int)digits_len, digits);
+ assert(0);
+ }
}
else if (-4 < decpt && decpt <= 17) {
if (sign == 1) {
More information about the Python-checkins
mailing list