From 76d38502e47fbbf52b467b3952bee28ecf3ef7c2 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Mon, 24 Jun 2013 23:34:15 +0200 Subject: [PATCH] Issue #9566: Fix a compiler warning on Windows x64 --- Python/formatter_unicode.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Python/formatter_unicode.c b/Python/formatter_unicode.c index aac85b3392..9b5aff59ee 100644 --- a/Python/formatter_unicode.c +++ b/Python/formatter_unicode.c @@ -982,8 +982,7 @@ format_float_internal(PyObject *value, Py_ssize_t n_total; int has_decimal; double val; - Py_ssize_t precision; - Py_ssize_t default_precision = 6; + int precision, default_precision = 6; Py_UCS4 type = format->type; int add_pct = 0; Py_ssize_t index; @@ -1138,8 +1137,7 @@ format_complex_internal(PyObject *value, Py_ssize_t n_im_total; int re_has_decimal; int im_has_decimal; - int precision; - Py_ssize_t default_precision = 6; + int precision, default_precision = 6; Py_UCS4 type = format->type; Py_ssize_t i_re; Py_ssize_t i_im; -- 2.50.0