[Python-checkins] commit of r41755 - python/trunk/Python/pystrtod.c
neal.norwitz
python-checkins at python.org
Sun Dec 18 06:37:41 CET 2005
Author: neal.norwitz
Date: Sun Dec 18 06:37:36 2005
New Revision: 41755
Modified:
python/trunk/Python/pystrtod.c
Log:
Fix compiler warnings
Modified: python/trunk/Python/pystrtod.c
==============================================================================
--- python/trunk/Python/pystrtod.c (original)
+++ python/trunk/Python/pystrtod.c Sun Dec 18 06:37:36 2005
@@ -41,7 +41,7 @@
PyOS_ascii_strtod(const char *nptr, char **endptr)
{
char *fail_pos;
- double val;
+ double val = -1.0;
struct lconv *locale_data;
const char *decimal_point;
int decimal_point_len;
@@ -130,7 +130,7 @@
if (nptr[i] == '-')
i++;
if (nptr[i] == '0' && (nptr[i+1] == 'x' || nptr[i+1] == 'X'))
- fail_pos = nptr;
+ fail_pos = (char*)nptr;
else
val = strtod(nptr, &fail_pos);
}
More information about the Python-checkins
mailing list