From 81363dfa8c99be3059cc42493960ee1ef99a57b9 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Mon, 24 Jun 2013 23:37:40 +0200 Subject: Issue #9566: pystrtod.c: Fix a compiler warnings on Windows x64 --- Python/pystrtod.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Python/pystrtod.c') diff --git a/Python/pystrtod.c b/Python/pystrtod.c index 4ab8f08d22..f8d3b35b9f 100644 --- a/Python/pystrtod.c +++ b/Python/pystrtod.c @@ -923,7 +923,7 @@ static char *uc_float_strings[] = { static char * format_float_short(double d, char format_code, - int mode, Py_ssize_t precision, + int mode, int precision, int always_add_sign, int add_dot_0_if_integer, int use_alt_formatting, char **float_strings, int *type) { @@ -1059,7 +1059,7 @@ format_float_short(double d, char format_code, /* if using an exponent, reset decimal point position to 1 and adjust exponent accordingly.*/ if (use_exp) { - exp = decpt - 1; + exp = (int)decpt - 1; decpt = 1; } /* ensure vdigits_start < decpt <= vdigits_end, or vdigits_start < -- cgit v1.2.1 From 5b9aee48b45708cce28ecc0e94c7923b750cc502 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Mon, 14 Oct 2013 06:51:46 +0200 Subject: Re #18521: remove assignments of variables that are immediately reassigned. --- Python/pystrtod.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Python/pystrtod.c') diff --git a/Python/pystrtod.c b/Python/pystrtod.c index f8d3b35b9f..b8dd919a26 100644 --- a/Python/pystrtod.c +++ b/Python/pystrtod.c @@ -164,7 +164,7 @@ static double _PyOS_ascii_strtod(const char *nptr, char **endptr) { char *fail_pos; - double val = -1.0; + double val; struct lconv *locale_data; const char *decimal_point; size_t decimal_point_len; -- cgit v1.2.1