Commit 7175cd8c authored by Jan Möbius's avatar Jan Möbius

Several warnings

parent 79ce71f2
Pipeline #3529 canceled with stage
in 13 minutes and 38 seconds
......@@ -589,7 +589,7 @@ void CompositeT<MeshType,RealType>::FVc(Coeff& _coeff)
if (mesh_.face_handle(mesh_.opposite_halfedge_handle(mesh_.next_halfedge_handle(*voh_it))).is_valid()) {
cog += mesh_.data(mesh_.face_handle(*voh_it)).position() * c;
cog += mesh_.data(mesh_.face_handle(mesh_.opposite_halfedge_handle(mesh_.next_halfedge_handle(*voh_it)))).position() * (1.0 - c);
cog += mesh_.data(mesh_.face_handle(mesh_.opposite_halfedge_handle(mesh_.next_halfedge_handle(*voh_it)))).position() * (static_cast<typename MeshType::Point::value_type>(1.0) - c);
} else {
cog += mesh_.data(mesh_.face_handle(*voh_it)).position();
}
......
......@@ -57,7 +57,7 @@ struct MyData
bool operator != (const MyData& _rhs) const { return !(*this == _rhs); }
};
typedef std::map< std::string, size_t > MyMap;
typedef std::map< std::string, unsigned int > MyMap;
namespace OpenMesh {
namespace IO {
......@@ -114,7 +114,7 @@ namespace OpenMesh {
return sizeof(unsigned int);
value_type::const_iterator it = _v.begin();
size_t N = _v.size();
unsigned int N = _v.size();
size_t bytes = IO::size_of(N);
for(;it!=_v.end(); ++it)
{
......@@ -128,7 +128,7 @@ namespace OpenMesh {
size_t store(std::ostream& _os, const value_type& _v, bool _swap=false)
{
size_t bytes = 0;
size_t N = _v.size();
unsigned int N = _v.size();
value_type::const_iterator it = _v.begin();
bytes += IO::store( _os, N, _swap );
for (; it != _v.end() && _os.good(); ++it)
......
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