diff options
author | Brian Paul <[email protected]> | 2002-11-08 17:38:13 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2002-11-08 17:38:13 +0000 |
commit | 456bc69ac4d1d463450b1ad03aa584082d15aa9d (patch) | |
tree | 74457a4a88c96df22982f7242ffbb6e1bd05124d /src/glu/sgi | |
parent | 872c9baf000c768cfa44d6c2afabe0aa9ee72b95 (diff) |
declare tempI as Int, not Real (Jon Perry)
Diffstat (limited to 'src/glu/sgi')
-rw-r--r-- | src/glu/sgi/libnurbs/nurbtess/sampleMonoPoly.cc | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/glu/sgi/libnurbs/nurbtess/sampleMonoPoly.cc b/src/glu/sgi/libnurbs/nurbtess/sampleMonoPoly.cc index 8a90eb17feb..4024397ae6a 100644 --- a/src/glu/sgi/libnurbs/nurbtess/sampleMonoPoly.cc +++ b/src/glu/sgi/libnurbs/nurbtess/sampleMonoPoly.cc @@ -31,10 +31,10 @@ ** published by SGI, but has not been independently verified as being ** compliant with the OpenGL(R) version 1.2.1 Specification. ** -** $Date: 2002/11/01 23:35:08 $ $Revision: 1.2 $ +** $Date: 2002/11/08 17:38:13 $ $Revision: 1.3 $ */ /* -** $Header: /home/krh/git/sync/mesa-cvs-repo/Mesa/src/glu/sgi/libnurbs/nurbtess/sampleMonoPoly.cc,v 1.2 2002/11/01 23:35:08 brianp Exp $ +** $Header: /home/krh/git/sync/mesa-cvs-repo/Mesa/src/glu/sgi/libnurbs/nurbtess/sampleMonoPoly.cc,v 1.3 2002/11/08 17:38:13 brianp Exp $ */ #include "gluos.h" @@ -483,7 +483,7 @@ rightChain->print(); Real tempMin = rightChain->getVertex(index2)[0]; - Real tempI = index2; + Int tempI = index2; for(i=index2+1; i<= rightChainEndIndex; i++) if(rightChain->getVertex(i)[0] < tempMin) { @@ -505,7 +505,7 @@ rightChain->print(); else { ret_leftCornerWhere = 2; //right - ret_leftCornerIndex = (int)tempI; + ret_leftCornerIndex = tempI; } } else if(index2> rightChainEndIndex) /*index1<=leftChainEndIndex*/ @@ -517,17 +517,17 @@ rightChain->print(); *either this vertex or the botvertex can be used as the right corner */ - Real tempI; + Int tempI; //skip those points which are equal to v. (avoid degeneratcy) for(tempI = index1; tempI <= leftChainEndIndex; tempI++) - if(leftChain->getVertex((Int) tempI)[1] < v) + if(leftChain->getVertex(tempI)[1] < v) break; if(tempI > leftChainEndIndex) ret_rightCornerWhere = 1; else { - Real tempMax = leftChain->getVertex((Int) tempI)[0]; - for(i=(int)tempI; i<= leftChainEndIndex; i++) + Real tempMax = leftChain->getVertex(tempI)[0]; + for(i=tempI; i<= leftChainEndIndex; i++) if(leftChain->getVertex(i)[0] > tempMax) { tempI = i; @@ -552,7 +552,7 @@ rightChain->print(); else { ret_rightCornerWhere = 0; - ret_rightCornerIndex = (int)tempI; + ret_rightCornerIndex = tempI; } } |