@@ -84,7 +84,7 @@ + (void) drawLineSegments: (CGFloat *)points count:(NSUInteger)count inContext:(
84
84
prev = CGPointApplyAffineTransform (prev, transform);
85
85
}
86
86
}
87
- p[i] =prev;
87
+ p[i] = prev;
88
88
p[i+1 ]= cur;
89
89
prev = cur;
90
90
}
@@ -106,7 +106,7 @@ - (void) setLines: (CGFloat *)points offset:(NSUInteger)offset count:(NSUInteger
106
106
107
107
- (void ) addLines : (CGFloat *)points offset : (NSUInteger )offset count : (NSUInteger )count close : (BOOL )close {
108
108
[self moveToPoint: (CGPoint)CGPointMake (points[offset], points[offset+1 ])];
109
- for (int i = offset + 2 ; i < count; i+=2 )
109
+ for (int i = ( int ) offset + 2 ; i < count; i+=2 )
110
110
{
111
111
[self addLineToPoint: (CGPoint)CGPointMake (points[i], points[i + 1 ])];
112
112
}
@@ -117,7 +117,7 @@ - (void) addLines: (CGFloat *)points offset:(NSUInteger)offset count:(NSUInteger
117
117
118
118
+ (void ) addLines : (CGFloat *)points offset : (NSUInteger )offset count : (NSUInteger )count close : (BOOL )close toPath : (CGMutablePathRef)path {
119
119
CGPathMoveToPoint (path, NULL , points[offset], points[offset+1 ]);
120
- for (int i = offset +2 ; i < count; i+=2 )
120
+ for (int i = ( int ) offset + 2 ; i < count; i+=2 )
121
121
{
122
122
CGPathAddLineToPoint (path, NULL , points[i], points[i + 1 ]);
123
123
}
@@ -133,7 +133,7 @@ - (void) setCubicLines: (CGFloat *)points offset:(NSUInteger)offset count:(NSUIn
133
133
134
134
- (void ) addCubicLines : (CGFloat *)points offset : (NSUInteger )offset count : (NSUInteger )count close : (BOOL )close {
135
135
[self moveToPoint: (CGPoint)CGPointMake (points[offset], points[offset+1 ])];
136
- for (int i = offset+ 2 ; i < count; i+=6 )
136
+ for (int i = ( int ) offset + 2 ; i < count; i+=6 )
137
137
{
138
138
[self addCurveToPoint: CGPointMake (points[i + 4 ], points[i + 5 ]) controlPoint1: CGPointMake (points[i], points[i + 1 ]) controlPoint2: CGPointMake (points[i + 2 ], points[i + 3 ])];
139
139
}
@@ -145,7 +145,7 @@ - (void) addCubicLines: (CGFloat *)points offset:(NSUInteger)offset count:(NSUIn
145
145
146
146
+ (void ) addCubicLines : (CGFloat *)points offset : (NSUInteger )offset count : (NSUInteger )count close : (BOOL )close toPath : (CGMutablePathRef)path {
147
147
CGPathMoveToPoint (path, NULL , points[offset], points[offset+1 ]);
148
- for (int i = offset + 2 ; i < count; i+=6 )
148
+ for (int i = ( int ) offset + 2 ; i < count; i+=6 )
149
149
{
150
150
CGPathAddCurveToPoint (path, NULL , points[i], points[i + 1 ], points[i + 2 ], points[i + 3 ], points[i + 4 ], points[i + 5 ]);
151
151
}
0 commit comments