Commit 82091f77 authored by Matthias Möller's avatar Matthias Möller
Browse files

fix undefined behaviour

" Real floating and integer 
If the value of the integral part cannot be represented by the integer type, the behavior is undefined.50"

git-svn-id: 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 9e3dd91d
......@@ -446,8 +446,8 @@ void InfoMeshObjectPlugin::printMeshInfo( MeshT* _mesh , int _id, unsigned int _
float minD = FLT_MAX;
float sumD = 0.0;
int numD = 0;
unsigned int maxFValence = -std::numeric_limits<float>::infinity();
unsigned int minFValence = std::numeric_limits<float>::infinity();
unsigned int maxFValence = std::numeric_limits<unsigned int>::min();
unsigned int minFValence = std::numeric_limits<unsigned int>::max();
size_t sumFValence = 0;
//iterate over all 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