@@ -193,14 +193,14 @@ static bool ClipRRectContainsPlatformViewBoundingRect(const SkRRect& clip_rrect,
193193void FlutterPlatformViewsController::OnCreate (FlutterMethodCall* call, FlutterResult& result) {
194194 NSDictionary <NSString *, id >* args = [call arguments ];
195195
196- long viewId = [args[@" id" ] longValue ];
196+ int64_t viewId = [args[@" id" ] longLongValue ];
197197 NSString * viewTypeString = args[@" viewType" ];
198198 std::string viewType (viewTypeString.UTF8String );
199199
200200 if (views_.count (viewId) != 0 ) {
201201 result ([FlutterError errorWithCode: @" recreating_view"
202202 message: @" trying to create an already created view"
203- details: [NSString stringWithFormat: @" view id: '%ld '" , viewId]]);
203+ details: [NSString stringWithFormat: @" view id: '%lld '" , viewId]]);
204204 }
205205
206206 NSObject <FlutterPlatformViewFactory>* factory = factories_[viewType].get ();
@@ -234,7 +234,8 @@ static bool ClipRRectContainsPlatformViewBoundingRect(const SkRRect& clip_rrect,
234234 arguments: params];
235235 UIView* platform_view = [embedded_view view ];
236236 // Set a unique view identifier, so the platform view can be identified in unit tests.
237- platform_view.accessibilityIdentifier = [NSString stringWithFormat: @" platform_view[%ld ]" , viewId];
237+ platform_view.accessibilityIdentifier =
238+ [NSString stringWithFormat: @" platform_view[%lld ]" , viewId];
238239 views_[viewId] = fml::scoped_nsobject<NSObject <FlutterPlatformView>>([embedded_view retain ]);
239240
240241 FlutterTouchInterceptingView* touch_interceptor = [[[FlutterTouchInterceptingView alloc ]
0 commit comments