From: Neal Norwitz Date: Sun, 18 Dec 2005 05:37:36 +0000 (+0000) Subject: Fix compiler warnings X-Git-Tag: v2.5a0~989 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0e7a0ed335b464eb82e2b06f334566fe6d35226a;p=thirdparty%2FPython%2Fcpython.git Fix compiler warnings --- diff --git a/Python/pystrtod.c b/Python/pystrtod.c index 19f25dab97d5..85eda91bfbed 100644 --- a/Python/pystrtod.c +++ b/Python/pystrtod.c @@ -41,7 +41,7 @@ double 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 @@ PyOS_ascii_strtod(const char *nptr, char **endptr) 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); }