Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22c2689 commit a906be6Copy full SHA for a906be6
1 file changed
src/_path_wrapper.cpp
@@ -25,9 +25,9 @@ convert_polygon_vector(std::vector<Polygon> &polygons)
25
auto result = py::list(polygons.size());
26
27
for (size_t i = 0; i < polygons.size(); ++i) {
28
- Polygon poly = polygons[i];
+ const auto& poly = polygons[i];
29
py::ssize_t dims[] = { static_cast<py::ssize_t>(poly.size()), 2 };
30
- result[i] = py::array(dims, reinterpret_cast<double *>(poly.data()));
+ result[i] = py::array(dims, reinterpret_cast<const double *>(poly.data()));
31
}
32
33
return result;
0 commit comments