Fix: Build issue with MSVC + Python 3.10
ssize_t is a posix type pyconfig.h previously supplied for MSVC, it appears to have stopped doing this in the python 3.10 headers. Py_ssize_t is the type of the field this macro actually returns, so best to to use that in our code as well.
This commit is contained in:
parent
460e0a1347
commit
368bfa80f9
|
@ -103,7 +103,7 @@ PyDoc_STRVAR(BPY_rna_operator_poll_message_set_doc,
|
|||
|
||||
static PyObject *BPY_rna_operator_poll_message_set(PyObject *UNUSED(self), PyObject *args)
|
||||
{
|
||||
const ssize_t args_len = PyTuple_GET_SIZE(args);
|
||||
const Py_ssize_t args_len = PyTuple_GET_SIZE(args);
|
||||
if (args_len == 0) {
|
||||
PyErr_SetString(PyExc_ValueError,
|
||||
"poll_message_set(message, ...): requires a message argument");
|
||||
|
|
Loading…
Reference in New Issue