Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 76d3850

Browse files
committed
Issue #9566: Fix a compiler warning on Windows x64
1 parent 2199c38 commit 76d3850

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

Python/formatter_unicode.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -982,8 +982,7 @@ format_float_internal(PyObject *value,
982982
Py_ssize_t n_total;
983983
int has_decimal;
984984
double val;
985-
Py_ssize_t precision;
986-
Py_ssize_t default_precision = 6;
985+
int precision, default_precision = 6;
987986
Py_UCS4 type = format->type;
988987
int add_pct = 0;
989988
Py_ssize_t index;
@@ -1138,8 +1137,7 @@ format_complex_internal(PyObject *value,
11381137
Py_ssize_t n_im_total;
11391138
int re_has_decimal;
11401139
int im_has_decimal;
1141-
int precision;
1142-
Py_ssize_t default_precision = 6;
1140+
int precision, default_precision = 6;
11431141
Py_UCS4 type = format->type;
11441142
Py_ssize_t i_re;
11451143
Py_ssize_t i_im;

0 commit comments

Comments
 (0)