Commit 6f0d5ac8 authored by Matthias Möller's avatar Matthias Möller

fix undefined behaviour

"6.3.1.4 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: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@19965 383ad7c9-94d9-4d36-a494-682f7c89f535
parent b4490fd7
......@@ -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