File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
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);
Original file line number Diff line number Diff line change @@ -1353,7 +1353,7 @@ _add_polygon(Py::List& polygons, const std::vector<double>& polygon)
1353
1353
{
1354
1354
return ;
1355
1355
}
1356
- npy_intp polygon_dims[] = { polygon.size () / 2 , 2 , 0 };
1356
+ npy_intp polygon_dims[] = { static_cast <npy_intp>( polygon.size () / 2 ) , 2 , 0 };
1357
1357
PyArrayObject* polygon_array = NULL ;
1358
1358
polygon_array = (PyArrayObject*)PyArray_SimpleNew
1359
1359
(2 , polygon_dims, PyArray_DOUBLE);
You can’t perform that action at this time.
0 commit comments