diff options
author | Campbell Barton <campbell@blender.org> | 2022-11-08 04:03:38 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-11-08 04:16:28 +0300 |
commit | 8f439bdc2de1f964c8037448796a3f03a9cce4fe (patch) | |
tree | 219660e15c6b58c1433f783bb25e70a732902a84 /source/blender/python/bmesh/bmesh_py_types.c | |
parent | 1140e001a07b7912debbd3166d61f77499b60158 (diff) |
Fix invalid function signatures for PySequenceMethods callbacks
Function casts hid casting between potentially incompatible type
signatures (using int instead of Py_ssize_t). As it happens this seems
not to have caused any bugs on supported platforms so this change is
mainly for correctness and to avoid problems in the future.
Diffstat (limited to 'source/blender/python/bmesh/bmesh_py_types.c')
-rw-r--r-- | source/blender/python/bmesh/bmesh_py_types.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/python/bmesh/bmesh_py_types.c b/source/blender/python/bmesh/bmesh_py_types.c index 364adb5458b..5c9c83f2e6e 100644 --- a/source/blender/python/bmesh/bmesh_py_types.c +++ b/source/blender/python/bmesh/bmesh_py_types.c @@ -3118,7 +3118,7 @@ static Py_ssize_t bpy_bmelemseq_length(BPy_BMElemSeq *self) } } -static PyObject *bpy_bmelemseq_subscript_int(BPy_BMElemSeq *self, int keynum) +static PyObject *bpy_bmelemseq_subscript_int(BPy_BMElemSeq *self, Py_ssize_t keynum) { BPY_BM_CHECK_OBJ(self); |