Commit 9aea05ea authored by Max Lyon's avatar Max Lyon

fix more warnings

parent ccc3ef2d
Pipeline #3368 passed with stage
in 3 minutes and 56 seconds
......@@ -114,7 +114,7 @@ public:
TopologyKernelT::collect_garbage();
vertices_.resize(TopologyKernel::n_vertices());
} else {
for (unsigned int i = vertices_.size(); i > 0; --i)
for (int i = (int)vertices_.size(); i > 0; --i)
if (TopologyKernelT::is_deleted(VertexHandle(i-1)))
{
vertices_.erase(vertices_.begin() + (i-1));
......
......@@ -139,7 +139,7 @@ public:
virtual size_t size_of() const {
if (element_size() != OpenVolumeMeshBaseProperty::UnknownSize)
return this->OpenVolumeMeshBaseProperty::size_of(n_elements());
return std::accumulate(data_.begin(), data_.end(), 0, plus());
return std::accumulate(data_.begin(), data_.end(), size_t(0), plus());
}
virtual size_t size_of(size_t _n_elem) const {
......
......@@ -216,7 +216,7 @@ FaceHandle TopologyKernel::add_face(const std::vector<HalfEdgeHandle>& _halfedge
face_deleted_.push_back(false);
// Get added face's handle
FaceHandle fh(faces_.size() - 1);
FaceHandle fh((int)faces_.size() - 1);
// Resize props
resize_fprops(n_faces());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment