Skip to content

Commit 7b25135

Browse files
committed
Issue #9566: pystrtod.c: Fix a compiler warnings on Windows x64
1 parent 76d3850 commit 7b25135

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Python/pystrtod.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -923,7 +923,7 @@ static char *uc_float_strings[] = {
923923

924924
static char *
925925
format_float_short(double d, char format_code,
926-
int mode, Py_ssize_t precision,
926+
int mode, int precision,
927927
int always_add_sign, int add_dot_0_if_integer,
928928
int use_alt_formatting, char **float_strings, int *type)
929929
{
@@ -1059,7 +1059,7 @@ format_float_short(double d, char format_code,
10591059
/* if using an exponent, reset decimal point position to 1 and adjust
10601060
exponent accordingly.*/
10611061
if (use_exp) {
1062-
exp = decpt - 1;
1062+
exp = (int)decpt - 1;
10631063
decpt = 1;
10641064
}
10651065
/* ensure vdigits_start < decpt <= vdigits_end, or vdigits_start <

0 commit comments

Comments
 (0)