From d8a959f34acef69e5cc8582d799feb86c243aa83 Mon Sep 17 00:00:00 2001 From: Jacques Lucke Date: Tue, 8 Apr 2025 09:54:39 +0200 Subject: [PATCH] Cleanup: avoid error-prone function cast --- source/blender/python/intern/bpy_geometry_set.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/source/blender/python/intern/bpy_geometry_set.cc b/source/blender/python/intern/bpy_geometry_set.cc index 542a41c04e1..6e538d94fb0 100644 --- a/source/blender/python/intern/bpy_geometry_set.cc +++ b/source/blender/python/intern/bpy_geometry_set.cc @@ -59,11 +59,11 @@ static BPy_GeometrySet *python_object_from_geometry_set(GeometrySet geometry = { return self; } -static BPy_GeometrySet *BPy_GeometrySet_new(PyTypeObject * /*type*/, - PyObject * /*args*/, - PyObject * /*kwds*/) +static PyObject *BPy_GeometrySet_new(PyTypeObject * /*type*/, + PyObject * /*args*/, + PyObject * /*kwds*/) { - return python_object_from_geometry_set(); + return reinterpret_cast(python_object_from_geometry_set()); } static void BPy_GeometrySet_dealloc(BPy_GeometrySet *self) @@ -472,7 +472,7 @@ PyTypeObject bpy_geometry_set_Type = { /*tp_dictoffset*/ 0, /*tp_init*/ nullptr, /*tp_alloc*/ nullptr, - /*tp_new*/ reinterpret_cast(BPy_GeometrySet_new), + /*tp_new*/ BPy_GeometrySet_new, }; PyObject *BPyInit_geometry_set_type()