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()