Skip to content

Commit 5b0b0ab

Browse files
committed
chore: warning fix on iSO
1 parent de7a477 commit 5b0b0ab

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

plugin/platforms/ios/src/UIBezierPath+Elements.m

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ + (void) drawLineSegments: (CGFloat *)points count:(NSUInteger)count inContext:(
8484
prev = CGPointApplyAffineTransform(prev, transform);
8585
}
8686
}
87-
p[i] =prev;
87+
p[i] = prev;
8888
p[i+1]= cur;
8989
prev = cur;
9090
}
@@ -106,7 +106,7 @@ - (void) setLines: (CGFloat *)points offset:(NSUInteger)offset count:(NSUInteger
106106

107107
- (void) addLines: (CGFloat *)points offset:(NSUInteger)offset count:(NSUInteger)count close:(BOOL)close{
108108
[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)
110110
{
111111
[self addLineToPoint:(CGPoint)CGPointMake(points[i], points[i + 1])];
112112
}
@@ -117,7 +117,7 @@ - (void) addLines: (CGFloat *)points offset:(NSUInteger)offset count:(NSUInteger
117117

118118
+ (void) addLines: (CGFloat *)points offset:(NSUInteger)offset count:(NSUInteger)count close:(BOOL)close toPath:(CGMutablePathRef)path{
119119
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)
121121
{
122122
CGPathAddLineToPoint(path, NULL, points[i], points[i + 1]);
123123
}
@@ -133,7 +133,7 @@ - (void) setCubicLines: (CGFloat *)points offset:(NSUInteger)offset count:(NSUIn
133133

134134
- (void) addCubicLines: (CGFloat *)points offset:(NSUInteger)offset count:(NSUInteger)count close:(BOOL)close {
135135
[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)
137137
{
138138
[self addCurveToPoint:CGPointMake(points[i + 4], points[i + 5]) controlPoint1:CGPointMake(points[i], points[i + 1]) controlPoint2:CGPointMake(points[i + 2], points[i + 3])];
139139
}
@@ -145,7 +145,7 @@ - (void) addCubicLines: (CGFloat *)points offset:(NSUInteger)offset count:(NSUIn
145145

146146
+ (void) addCubicLines: (CGFloat *)points offset:(NSUInteger)offset count:(NSUInteger)count close:(BOOL)close toPath:(CGMutablePathRef)path {
147147
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)
149149
{
150150
CGPathAddCurveToPoint(path, NULL, points[i], points[i + 1], points[i + 2], points[i + 3], points[i + 4], points[i + 5]);
151151
}

0 commit comments

Comments
 (0)