diff --git a/libsrc/geom2d/python_geom2d.cpp b/libsrc/geom2d/python_geom2d.cpp index 7dfc1b4c..ce72e81f 100644 --- a/libsrc/geom2d/python_geom2d.cpp +++ b/libsrc/geom2d/python_geom2d.cpp @@ -195,8 +195,8 @@ DLL_HEADER void ExportGeom2d(py::module &m) { cout << "spline is neither line nor spline3" << endl; } - xpoints.append(py::cast(xp)); - ypoints.append(py::cast(yp)); + xpoints.append(xp); + ypoints.append(yp); } return py::tuple(py::make_tuple(xlim, ylim, xpoints, ypoints));