Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorRay Molenkamp <github@lazydodo.com>2022-01-25 17:54:28 +0300
committerRay Molenkamp <github@lazydodo.com>2022-01-25 17:54:28 +0300
commit368bfa80f9e0d29a4b1a9c78be8a238c3e1ddcec (patch)
treedb424e02af3b114fd695fb0dd4b301d1591bf654 /source
parent460e0a1347e50d33f5d42235ee2d9cb7208cdc4f (diff)
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.
Diffstat (limited to 'source')
-rw-r--r--source/blender/python/intern/bpy_rna_operator.c2
1 files changed, 1 insertions, 1 deletions
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");