From 368bfa80f9e0d29a4b1a9c78be8a238c3e1ddcec Mon Sep 17 00:00:00 2001 From: Ray Molenkamp Date: Tue, 25 Jan 2022 07:54:28 -0700 Subject: 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. --- source/blender/python/intern/bpy_rna_operator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source') diff --git a/source/blender/python/intern/bpy_rna_operator.c b/source/blender/python/intern/bpy_rna_operator.c index d3ec54fc12d..d24e2a77a75 100644 --- a/source/blender/python/intern/bpy_rna_operator.c +++ b/source/blender/python/intern/bpy_rna_operator.c @@ -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"); -- cgit v1.2.3