]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
closes bpo-38253: Fix typo of Py_SET_ERANGE_IF_OVERFLOW in pyport.h. (GH-16230)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 24 Sep 2019 02:39:36 +0000 (19:39 -0700)
committerGitHub <noreply@github.com>
Tue, 24 Sep 2019 02:39:36 +0000 (19:39 -0700)
(cherry picked from commit 4346bad3321699d49a45e3446270b57726ab5c8f)

Co-authored-by: Hai Shi <shihai1992@gmail.com>
Include/pyport.h

index c1f4c7fbb52c99394bb099eae8954a6c560b58a0..27e51b42c617bd5bc3af5770249192342e7b54b5 100644 (file)
@@ -324,7 +324,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)