File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Filter options
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Original file line number Diff line number Diff line change @@ -277,7 +277,7 @@ void Triangulation::calculate_edges()
277
277
}
278
278
279
279
// Convert to python _edges array.
280
- npy_intp dims[2 ] = {edge_set.size (), 2 };
280
+ npy_intp dims[2 ] = {static_cast <npy_intp>( edge_set.size () ), 2 };
281
281
_edges = (PyArrayObject*)PyArray_SimpleNew (2 , dims, PyArray_INT);
282
282
int * edges_ptr = (int *)PyArray_DATA (_edges);
283
283
for (EdgeSet::const_iterator it = edge_set.begin (); it != edge_set.end (); ++it) {
@@ -571,7 +571,7 @@ Py::Object TriContourGenerator::contour_to_segs(const Contour& contour)
571
571
Py::List segs (contour.size ());
572
572
for (Contour::size_type i = 0 ; i < contour.size (); ++i) {
573
573
const ContourLine& line = contour[i];
574
- npy_intp dims[2 ] = {line.size (),2 };
574
+ npy_intp dims[2 ] = {static_cast <npy_intp>( line.size () ),2 };
575
575
PyArrayObject* py_line = (PyArrayObject*)PyArray_SimpleNew (
576
576
2 , dims, PyArray_DOUBLE);
577
577
double * p = (double *)PyArray_DATA (py_line);
You can’t perform that action at this time.
0 commit comments