closes gh-106479: fix typo in __cplusplus macro (gh-106480)

This commit is contained in:
Dustin Rodrigues 2023-07-06 18:34:00 -04:00 committed by GitHub
parent 5548097925
commit 67a798888d
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);