diff options
| author | shadchin <[email protected]> | 2022-02-10 16:44:30 +0300 |
|---|---|---|
| committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:44:30 +0300 |
| commit | 2598ef1d0aee359b4b6d5fdd1758916d5907d04f (patch) | |
| tree | 012bb94d777798f1f56ac1cec429509766d05181 /contrib/tools/python3/src/Python/pystrtod.c | |
| parent | 6751af0b0c1b952fede40b19b71da8025b5d8bcf (diff) | |
Restoring authorship annotation for <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'contrib/tools/python3/src/Python/pystrtod.c')
| -rw-r--r-- | contrib/tools/python3/src/Python/pystrtod.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/contrib/tools/python3/src/Python/pystrtod.c b/contrib/tools/python3/src/Python/pystrtod.c index 1c8202c7761..a0cfbdd33bd 100644 --- a/contrib/tools/python3/src/Python/pystrtod.c +++ b/contrib/tools/python3/src/Python/pystrtod.c @@ -1,7 +1,7 @@ /* -*- Mode: C; c-file-style: "python" -*- */ #include <Python.h> -#include "pycore_dtoa.h" +#include "pycore_dtoa.h" #include <locale.h> /* Case-insensitive string match used for nan and inf detection; t should be @@ -352,15 +352,15 @@ PyOS_string_to_double(const char *s, else if (!endptr && (fail_pos == s || *fail_pos != '\0')) PyErr_Format(PyExc_ValueError, "could not convert string to float: " - "'%.200s'", s); + "'%.200s'", s); else if (fail_pos == s) PyErr_Format(PyExc_ValueError, "could not convert string to float: " - "'%.200s'", s); + "'%.200s'", s); else if (errno == ERANGE && fabs(x) >= 1.0 && overflow_exception) PyErr_Format(overflow_exception, "value too large to convert to float: " - "'%.200s'", s); + "'%.200s'", s); else result = x; @@ -793,7 +793,7 @@ _PyOS_ascii_formatd(char *buffer, /* The fallback code to use if _Py_dg_dtoa is not available. */ -char * PyOS_double_to_string(double val, +char * PyOS_double_to_string(double val, char format_code, int precision, int flags, @@ -1240,7 +1240,7 @@ format_float_short(double d, char format_code, } -char * PyOS_double_to_string(double val, +char * PyOS_double_to_string(double val, char format_code, int precision, int flags, |
