Skip to content

Commit

Permalink
* [ios] force convert
Browse files Browse the repository at this point in the history
  • Loading branch information
cxfeng1 committed Dec 7, 2016
1 parent 46ce451 commit bfd16a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ios/sdk/WeexSDK/Sources/Bridge/WXJSCoreBridge.m
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ - (void)registerCallNative:(WXJSCallNative)callNative
NSString *callbackId = [callback toString];

WXLogDebug(@"Calling native... instance:%@, tasks:%@, callback:%@", instanceId, tasksArray, callbackId);
return [JSValue valueWithInt32:callNative(instanceId, tasksArray, callbackId) inContext:[JSContext currentContext]];
return [JSValue valueWithInt32:(int32_t)callNative(instanceId, tasksArray, callbackId) inContext:[JSContext currentContext]];
};

_jsContext[@"callNative"] = callNativeBlock;
Expand All @@ -151,7 +151,7 @@ - (void)registerCallAddElement:(WXJSCallAddElement)callAddElement

WXLogDebug(@"callAddElement...%@, %@, %@, %ld", instanceIdString, parentRef, componentData, (long)insertIndex);

return [JSValue valueWithInt32:callAddElement(instanceIdString, parentRef, componentData, insertIndex) inContext:[JSContext currentContext]];
return [JSValue valueWithInt32:(int32_t)callAddElement(instanceIdString, parentRef, componentData, insertIndex) inContext:[JSContext currentContext]];
};

_jsContext[@"callAddElement"] = callAddElementBlock;
Expand Down

0 comments on commit bfd16a0

Please sign in to comment.