[Python-checkins] cpython: Issue #9566: pystrtod.c: Fix a compiler warnings on Windows x64

victor.stinner python-checkins at python.org
Mon Jun 24 23:37:53 CEST 2013


http://hg.python.org/cpython/rev/5a72adc7c8f7
changeset:   84327:5a72adc7c8f7
user:        Victor Stinner <victor.stinner at gmail.com>
date:        Mon Jun 24 23:37:40 2013 +0200
summary:
  Issue #9566: pystrtod.c: Fix a compiler warnings on Windows x64

files:
  Python/pystrtod.c |  4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)


diff --git a/Python/pystrtod.c b/Python/pystrtod.c
--- a/Python/pystrtod.c
+++ b/Python/pystrtod.c
@@ -923,7 +923,7 @@
 
 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 @@
     /* 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 <

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list