]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-102304: Temporarily Bump Py_LIMITED_API for 2 New Functions (#104766)
authorEric Snow <ericsnowcurrently@gmail.com>
Mon, 22 May 2023 23:03:17 +0000 (17:03 -0600)
committerGitHub <noreply@github.com>
Mon, 22 May 2023 23:03:17 +0000 (01:03 +0200)
Quick and dirty.

Include/object.h

index 81aeb2d8bd5a694b5cb90d96106b874056595985..c4fe2f83ef62bccced308d1c758f7e33e4dccc89 100644 (file)
@@ -590,7 +590,7 @@ you can count such references to the type object.)
 extern Py_ssize_t _Py_RefTotal;
 #    define _Py_INC_REFTOTAL() _Py_RefTotal++
 #    define _Py_DEC_REFTOTAL() _Py_RefTotal--
-#  elif !defined(Py_LIMITED_API) || Py_LIMITED_API+0 > 0x030C0000
+#  elif !defined(Py_LIMITED_API) || Py_LIMITED_API+0 > 0x030D0000
 PyAPI_FUNC(void) _Py_IncRefTotal_DO_NOT_USE_THIS(void);
 PyAPI_FUNC(void) _Py_DecRefTotal_DO_NOT_USE_THIS(void);
 #    define _Py_INC_REFTOTAL() _Py_IncRefTotal_DO_NOT_USE_THIS()