Selaa lähdekoodia

fix warning of type conversion

ibireme 9 vuotta sitten
vanhempi
commit
d9c0530c87
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      YYModel/NSObject+YYModel.m

+ 1 - 1
YYModel/NSObject+YYModel.m

@@ -796,7 +796,7 @@ static void ModelSetValueForProperty(__unsafe_unretained id model,
                                 if ([oneValue isKindOfClass:[NSDictionary class]]) {
                                     Class clazz = meta->_genericCls;
                                     if (meta->_hasCustomClassFromDictionary) {
-                                        clazz = [clazz modelCustomClassForDictionary:oneValue] ?: clazz;
+                                        clazz = [clazz modelCustomClassForDictionary:(NSDictionary *)oneValue] ?: clazz;
                                     }
 
                                     NSObject *o = [clazz new];