Skip to content

Commit a6a35f7

Browse files
committed
updated objc_msgSend routine to fix compiler warning
1 parent 3dfd93e commit a6a35f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SHModelObject/SHModelObject/SHRealmObject.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ - (void)serializeValue:(id)value withKey:(id)key {
316316
if (isSHRealmObject) {
317317

318318
NSString *propName = [ivarName substringFromIndex:1];
319-
id realmArray = objc_msgSend(self, NSSelectorFromString(propName));
319+
id realmArray = ((id (*)(id, SEL))objc_msgSend)(self, NSSelectorFromString(propName));
320320
for (id item in value) {
321321
// item should be a dictionary
322322
if ([item isKindOfClass:[NSDictionary class]]) {

0 commit comments

Comments
 (0)