Bläddra i källkod

Fix error.code cast

Mathieu Acthernoene 6 år sedan
förälder
incheckning
2cc2e87a0d
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2
    2
      ios/RNPermissionsManager.m

+ 2
- 2
ios/RNPermissionsManager.m Visa fil

221
   [handler checkWithResolver:^(RNPermissionStatus status) {
221
   [handler checkWithResolver:^(RNPermissionStatus status) {
222
     resolve([self stringForStatus:status]);
222
     resolve([self stringForStatus:status]);
223
   } withRejecter:^(NSError *error) {
223
   } withRejecter:^(NSError *error) {
224
-    reject([NSString stringWithFormat:@"%ld", error.code], error.localizedDescription, error);
224
+    reject([NSString stringWithFormat:@"%ld", (long)error.code], error.localizedDescription, error);
225
   }];
225
   }];
226
 }
226
 }
227
 
227
 
249
 
249
 
250
     resolve([self stringForStatus:status]);
250
     resolve([self stringForStatus:status]);
251
   } withRejecter:^(NSError *error) {
251
   } withRejecter:^(NSError *error) {
252
-    reject([NSString stringWithFormat:@"%ld", error.code], error.localizedDescription, error);
252
+    reject([NSString stringWithFormat:@"%ld", (long)error.code], error.localizedDescription, error);
253
   }];
253
   }];
254
 }
254
 }
255
 
255