From e31cc7dfa15f37e817dcb017f3a09ed73fa63227 Mon Sep 17 00:00:00 2001 From: Matthias Hochsteger Date: Thu, 1 Dec 2016 14:24:30 +0100 Subject: [PATCH] Not necessary to cast py::list to python object --- libsrc/geom2d/python_geom2d.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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));