Commit 50914d19 authored by Jan Möbius's avatar Jan Möbius
Browse files

Signed vs unsigned fix

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free-Staging@16337 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 180a5080
......@@ -319,7 +319,7 @@ const int MarchingSquares::edges[1<<Square::CORNERS][MAX_EDGES*2+1] = {
double MarchingSquares::vertexList[Square::EDGES][2];
int MarchingSquares::GetIndex(const double v[Square::CORNERS],double iso){
int idx=0;
for(int i=0;i<Square::CORNERS;i++){if(v[i]<iso){idx|=(1<<i);}}
for(int i=0;i<int(Square::CORNERS);i++){if(v[i]<iso){idx|=(1<<i);}}
return idx;
}
......
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