Commit 7b251358 authored by Victor Stinner's avatar Victor Stinner

Issue #9566: pystrtod.c: Fix a compiler warnings on Windows x64

parent 76d38502
...@@ -923,7 +923,7 @@ static char *uc_float_strings[] = { ...@@ -923,7 +923,7 @@ static char *uc_float_strings[] = {
static char * static char *
format_float_short(double d, char format_code, 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 always_add_sign, int add_dot_0_if_integer,
int use_alt_formatting, char **float_strings, int *type) int use_alt_formatting, char **float_strings, int *type)
{ {
...@@ -1059,7 +1059,7 @@ format_float_short(double d, char format_code, ...@@ -1059,7 +1059,7 @@ format_float_short(double d, char format_code,
/* if using an exponent, reset decimal point position to 1 and adjust /* if using an exponent, reset decimal point position to 1 and adjust
exponent accordingly.*/ exponent accordingly.*/
if (use_exp) { if (use_exp) {
exp = decpt - 1; exp = (int)decpt - 1;
decpt = 1; decpt = 1;
} }
/* ensure vdigits_start < decpt <= vdigits_end, or vdigits_start < /* ensure vdigits_start < decpt <= vdigits_end, or vdigits_start <
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment