[3.12] closes gh-106479: fix typo in __cplusplus macro (gh-106480) (#106493)

closes gh-106479: fix typo in __cplusplus macro (gh-106480)
(cherry picked from commit 67a798888d)

Co-authored-by: Dustin Rodrigues <dust.rod@gmail.com>
This commit is contained in:
Miss Islington (bot) 2023-07-06 16:30:32 -07:00 committed by GitHub
parent 4787eaed06
commit 5293e01089
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -86,7 +86,7 @@ test_api_casts(PyObject *Py_UNUSED(module), PyObject *Py_UNUSED(args))
// gh-93442: Pass 0 as NULL for PyObject*
Py_XINCREF(0);
Py_XDECREF(0);
#if _cplusplus >= 201103
#if __cplusplus >= 201103
// Test nullptr passed as PyObject*
Py_XINCREF(nullptr);
Py_XDECREF(nullptr);