@@ -158,6 +158,9 @@ static PyTypeObject PyNullPtr_t_Type = {
158158#if PY_VERSION_HEX >= 0x03040000
159159 , 0 // tp_finalize
160160#endif
161+ #if PY_VERSION_HEX >= 0x03080000
162+ , 0 // tp_vectorcall
163+ #endif
161164};
162165
163166
@@ -192,6 +195,9 @@ static PyTypeObject PyDefault_t_Type = {
192195#if PY_VERSION_HEX >= 0x03040000
193196 , 0 // tp_finalize
194197#endif
198+ #if PY_VERSION_HEX >= 0x03080000
199+ , 0 // tp_vectorcall
200+ #endif
195201};
196202
197203namespace {
@@ -206,7 +212,7 @@ PyObject _CPyCppyy_DefaultStruct = {
206212 1 , &PyDefault_t_Type
207213};
208214
209- // TOOD : refactor with Converters.cxx
215+ // TODO : refactor with Converters.cxx
210216struct CPyCppyy_tagCDataObject { // non-public (but stable)
211217 PyObject_HEAD
212218 char * b_ptr;
@@ -477,7 +483,7 @@ static void* GetCPPInstanceAddress(const char* fname, PyObject* args, PyObject*
477483 return &((CPPInstance*)pyobj)->GetObjectRaw ();
478484
479485 } else if (CPyCppyy_PyText_Check (pyobj)) {
480- // special cases for acces to the CPyCppyy API
486+ // special cases for access to the CPyCppyy API
481487 std::string req = CPyCppyy_PyText_AsString ((PyObject*)pyobj);
482488 if (req == " Instance_AsVoidPtr" )
483489 return (void *)&Instance_AsVoidPtr;
@@ -516,8 +522,8 @@ static PyObject* addressof(PyObject* /* dummy */, PyObject* args, PyObject* kwds
516522 return nullptr ;
517523 }
518524
519- Cppyy::TCppFuncAddr_t addr = methods[0 ]->GetFunctionAddress ();
520- return PyLong_FromLongLong ((intptr_t )addr );
525+ Cppyy::TCppFuncAddr_t caddr = methods[0 ]->GetFunctionAddress ();
526+ return PyLong_FromLongLong ((intptr_t )caddr );
521527 }
522528
523529 // C functions (incl. ourselves)
@@ -1054,7 +1060,7 @@ extern "C" void initlibcppyy()
10541060#endif
10551061
10561062#if PY_VERSION_HEX < 0x030b0000
1057- // prepare for lazyness (the insert is needed to capture the most generic lookup
1063+ // prepare for laziness (the insert is needed to capture the most generic lookup
10581064// function, just in case ...)
10591065 PyObject* dict = PyDict_New ();
10601066 PyObject* notstring = PyInt_FromLong (5 );
0 commit comments