[Python-checkins] closes bpo-38253: Fix typo of Py_SET_ERANGE_IF_OVERFLOW in pyport.h. (GH-16230)

Miss Islington (bot) webhook-mailer at python.org
Mon Sep 23 22:31:30 EDT 2019


https://github.com/python/cpython/commit/7c65adf688dfadb113eec64374d8d5ccb4fc892b
commit: 7c65adf688dfadb113eec64374d8d5ccb4fc892b
branch: 2.7
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2019-09-23T19:31:25-07:00
summary:

closes bpo-38253: Fix typo of Py_SET_ERANGE_IF_OVERFLOW in pyport.h. (GH-16230)

(cherry picked from commit 4346bad3321699d49a45e3446270b57726ab5c8f)

Co-authored-by: Hai Shi <shihai1992 at gmail.com>

files:
M Include/pyport.h

diff --git a/Include/pyport.h b/Include/pyport.h
index 0c78a1e5b668..35562a6a89e6 100644
--- a/Include/pyport.h
+++ b/Include/pyport.h
@@ -481,7 +481,7 @@ extern "C" {
         } \
     } while(0)
 
-/* Py_SET_ERANGE_ON_OVERFLOW(x)
+/* Py_SET_ERANGE_IF_OVERFLOW(x)
  * An alias of Py_SET_ERRNO_ON_MATH_ERROR for backward-compatibility.
  */
 #define Py_SET_ERANGE_IF_OVERFLOW(X) Py_SET_ERRNO_ON_MATH_ERROR(X)



More information about the Python-checkins mailing list