Commit aec2fa24 authored by Jan Möbius's avatar Jan Möbius

Merge branch 'warnings' of https://www.graphics.rwth-aachen.de:9000/OpenMesh/OpenMesh into warnings

parents 74ada2ea d966d44a
Pipeline #3524 failed with stage
in 8 minutes and 1 second
......@@ -650,7 +650,7 @@ Tvv4<M>::raise(typename M::VertexHandle& _vh, state_t _target_state)
this->update(_vh, _target_state);
// multiply old position by 4
MOBJ(_vh).set_position(_target_state, MOBJ(_vh).position(_target_state - 1) * 4.0);
MOBJ(_vh).set_position(_target_state, MOBJ(_vh).position(_target_state - 1) * static_cast<typename M::Point::value_type>(4.0));
MOBJ(_vh).inc_state();
}
......
......@@ -328,7 +328,7 @@ TEST_F(OpenMeshTrimeshCirculatorCurrentHalfedgeHandleReplacement, vf_iter_bounda
* \ /
* 5
*/
size_t current_halfedge_handles[9] = {
int current_halfedge_handles[9] = {
0,2,12,4,6,8,16,10,14
};
std::vector<Mesh::FaceHandle> fh0;
......
......@@ -164,7 +164,7 @@ TEST_F(OpenMeshOthers, CalcDihedralAngre ) {
EXPECT_EQ( 0.0 , mesh_.calc_dihedral_angle(eh) ) << "Wrong Dihedral angle!" << std::endl;
// Modify point
Mesh::Point tmp = ( Mesh::Point(0.0, 0.0, -1.0) + Mesh::Point(1.0, 1.0, -1.0) ) * 0.5;
Mesh::Point tmp = ( Mesh::Point(0.0, 0.0, -1.0) + Mesh::Point(1.0, 1.0, -1.0) ) * static_cast<typename Mesh::Point::value_type>(0.5);
mesh_.point(vhandle[2]) = tmp;
double difference = fabs( 1.36944 - mesh_.calc_dihedral_angle(eh) );
......
......@@ -57,7 +57,7 @@ struct MyData
bool operator != (const MyData& _rhs) const { return !(*this == _rhs); }
};
typedef std::map< std::string, unsigned int > MyMap;
typedef std::map< std::string, size_t > MyMap;
namespace OpenMesh {
namespace IO {
......@@ -114,7 +114,7 @@ namespace OpenMesh {
return sizeof(unsigned int);
value_type::const_iterator it = _v.begin();
unsigned int N = _v.size();
size_t 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;
unsigned int N = _v.size();
size_t 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