diff options
author | Victor Stinner <vstinner@python.org> | 2019-11-20 01:51:30 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-20 01:51:30 (GMT) |
commit | be143ec99674ba38c5811f34cdb85ef39c2dc8f8 (patch) | |
tree | fb6f916b483c7dd7506d92899604cd17a4344e0d /Python/pystrtod.c | |
parent | 01b1cc12e7c6a3d6a3d27ba7c731687d57aae92a (diff) | |
download | cpython-be143ec99674ba38c5811f34cdb85ef39c2dc8f8.zip cpython-be143ec99674ba38c5811f34cdb85ef39c2dc8f8.tar.gz cpython-be143ec99674ba38c5811f34cdb85ef39c2dc8f8.tar.bz2 |
bpo-38835: Don't use PyFPE_START_PROTECT and PyFPE_END_PROTECT (GH-17231)
The PyFPE_START_PROTECT() and PyFPE_END_PROTECT() macros are empty:
they have been doing nothing for the last year (since commit
735ae8d139a673b30b321dc10acfd3d14f0d633b), so stop using them.
Diffstat (limited to 'Python/pystrtod.c')
-rw-r--r-- | Python/pystrtod.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/Python/pystrtod.c b/Python/pystrtod.c index 4aa99d5..94dc481 100644 --- a/Python/pystrtod.c +++ b/Python/pystrtod.c @@ -342,9 +342,7 @@ PyOS_string_to_double(const char *s, char *fail_pos; errno = 0; - PyFPE_START_PROTECT("PyOS_string_to_double", return -1.0) x = _PyOS_ascii_strtod(s, &fail_pos); - PyFPE_END_PROTECT(x) if (errno == ENOMEM) { PyErr_NoMemory(); |