Skip to content

Commit 0c529da

Browse files
committed
resolve compile-time warning
1 parent af56d50 commit 0c529da

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

WebViewJavascriptBridgeAbstract/WebViewJavascriptBridgeAbstract.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ typedef void (^WVJBHandler)(id data, WVJBResponseCallback responseCallback);
1212
@property (nonatomic, strong) NSMutableArray *startupMessageQueue;
1313
@property (nonatomic, strong) NSMutableDictionary *responseCallbacks;
1414
@property (nonatomic, strong) NSMutableDictionary *messageHandlers;
15-
@property (atomic, assign) NSInteger uniqueId;
15+
@property (atomic, assign) long uniqueId;
1616
@property (nonatomic, copy) WVJBHandler messageHandler;
1717

1818
+ (void)enableLogging;

WebViewJavascriptBridgeAbstract/WebViewJavascriptBridgeAbstract.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ - (void)_sendData:(NSDictionary *)data responseCallback:(WVJBResponseCallback)re
5151
NSMutableDictionary* message = [NSMutableDictionary dictionaryWithObject:data forKey:@"data"];
5252

5353
if (responseCallback) {
54-
NSString* callbackId = [NSString stringWithFormat:@"objc_cb_%d", ++self.uniqueId];
54+
NSString* callbackId = [NSString stringWithFormat:@"objc_cb_%ld", ++self.uniqueId];
5555
self.responseCallbacks[callbackId] = [responseCallback copy];
5656
message[@"callbackId"] = callbackId;
5757
}

0 commit comments

Comments
 (0)