python: use const_cast<> to new() python types.
This commit is contained in:
@@ -863,7 +863,7 @@ PyObject* GeometrySurfacePy::intersect(PyObject *args) const
|
||||
GeometryCurvePy* curve = static_cast<GeometryCurvePy*>(p);
|
||||
PyObject* t = PyTuple_New(2);
|
||||
Py_INCREF(this);
|
||||
PyTuple_SetItem(t, 0, this);
|
||||
PyTuple_SetItem(t, 0, const_cast<GeometrySurfacePy*>(this));
|
||||
PyTuple_SetItem(t, 1, PyFloat_FromDouble(prec));
|
||||
return curve->intersectCS(t);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user