Commit d33c1e5099bad28734f2715d448c54be49073144

dtremenak 2008-05-08T23:12:29

more fun with size_t consistency

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff --git a/src/FTContour.cpp b/src/FTContour.cpp
index a998c76..8a652a1 100644
--- a/src/FTContour.cpp
+++ b/src/FTContour.cpp
@@ -139,11 +139,12 @@ void FTContour::SetParity(int parity)
         clockwise = !clockwise;
     }
 
+	size_t prev, cur, next;
     for(size_t i = 0; i < size; i++)
     {
-        int prev = (i + size - 1) % size;
-        int cur = i;
-        int next = (i + size + 1) % size;
+        prev = (i + size - 1) % size;
+        cur = i;
+        next = (i + size + 1) % size;
 
         vOutset = ComputeOutsetPoint(Point(prev), Point(cur), Point(next));
         AddOutsetPoint(vOutset);