diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2013-07-30 20:09:36 +0200 |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2013-07-30 20:09:36 +0200 |
commit | dea573ec3aa5f526017a9b121cc574173f7e0e7f (patch) | |
tree | 643be57ade4e8b3a9960b7addd96c6bba6f2e85f /Python/pystrtod.c | |
parent | cd097b5262a96c2bea85ad0000c269ceea9f5089 (diff) | |
parent | 3e0aaf3e7d782ca7e08de2ba352be9c80d634dbe (diff) | |
download | cpython-dea573ec3aa5f526017a9b121cc574173f7e0e7f.tar.gz |
Merge doc fix
Diffstat (limited to 'Python/pystrtod.c')
-rw-r--r-- | Python/pystrtod.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/pystrtod.c b/Python/pystrtod.c index 4ab8f08d22..f8d3b35b9f 100644 --- a/Python/pystrtod.c +++ b/Python/pystrtod.c @@ -923,7 +923,7 @@ static char *uc_float_strings[] = { 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 @@ format_float_short(double d, char format_code, /* 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 < |