Fix errors with built options disabled PyAPI C++ refactor

Resolve issues from 6fcecb7e46
This commit is contained in:
Campbell Barton
2023-07-21 10:53:30 +10:00
parent 6fcecb7e46
commit ae5682fa10
7 changed files with 7 additions and 7 deletions

View File

@@ -709,7 +709,7 @@ int BaseMathObject_clear(BaseMathObject *self)
static bool BaseMathObject_is_tracked(BaseMathObject *self)
{
PyObject *cb_user = self->cb_user;
self->cb_user = (void *)(uintptr_t)-1;
self->cb_user = (PyObject *)uintptr_t(-1);
bool is_tracked = PyObject_GC_IsTracked((PyObject *)self);
self->cb_user = cb_user;
return is_tracked;