diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2005-12-18 05:37:36 +0000 |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2005-12-18 05:37:36 +0000 |
commit | e5b17b3a68f53b551410c928b8bab540e5e2f6d2 (patch) | |
tree | d40be313ac9d393be0103fb87a4bcc6e0dbc71b2 /Python/pystrtod.c | |
parent | a1effc74c5c4c3ac945a0f3c636353c97288c6e1 (diff) | |
download | cpython-e5b17b3a68f53b551410c928b8bab540e5e2f6d2.tar.gz |
Fix compiler warnings
Diffstat (limited to 'Python/pystrtod.c')
-rw-r--r-- | Python/pystrtod.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/pystrtod.c b/Python/pystrtod.c index 19f25dab97..85eda91bfb 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); } |