Skip to content

Commit

Permalink
Make enginesCreatedCount uint
Browse files Browse the repository at this point in the history
  • Loading branch information
cbracken committed Sep 30, 2024
1 parent 2f12a4b commit 675c2b2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ @interface FlutterEngineGroup ()
@property(nonatomic, copy) NSString* name;
@property(nonatomic, strong) NSMutableArray<NSValue*>* engines;
@property(nonatomic, copy) FlutterDartProject* project;
@property(nonatomic, assign) int enginesCreatedCount;
@property(nonatomic, assign) NSUInteger enginesCreatedCount;
@end

@implementation FlutterEngineGroup
Expand Down Expand Up @@ -77,7 +77,7 @@ - (FlutterEngine*)makeEngineWithOptions:(nullable FlutterEngineGroupOptions*)opt

- (FlutterEngine*)makeEngine {
NSString* engineName =
[NSString stringWithFormat:@"%@.%d", self.name, ++self.enginesCreatedCount];
[NSString stringWithFormat:@"%@.%lu", self.name, ++self.enginesCreatedCount];
return [[FlutterEngine alloc] initWithName:engineName project:self.project];
}

Expand Down

0 comments on commit 675c2b2

Please sign in to comment.