summaryrefslogtreecommitdiffstats
path: root/contrib/tools/python3/src/Python/pystrtod.c
diff options
context:
space:
mode:
authorshadchin <[email protected]>2022-02-10 16:44:39 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:44:39 +0300
commite9656aae26e0358d5378e5b63dcac5c8dbe0e4d0 (patch)
tree64175d5cadab313b3e7039ebaa06c5bc3295e274 /contrib/tools/python3/src/Python/pystrtod.c
parent2598ef1d0aee359b4b6d5fdd1758916d5907d04f (diff)
Restoring authorship annotation for <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'contrib/tools/python3/src/Python/pystrtod.c')
-rw-r--r--contrib/tools/python3/src/Python/pystrtod.c12
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 a0cfbdd33bd..1c8202c7761 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,