Skip to content

Commit

Permalink
Fix YYModel type cast Issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy0570 committed Jul 27, 2021
1 parent 826c825 commit d724d65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion YYKit/Model/NSObject+YYModel.m
Expand Up @@ -1561,7 +1561,7 @@ - (id)modelCopy{
} break;
case YYEncodingTypeInt8:
case YYEncodingTypeUInt8: {
uint8_t num = ((bool (*)(id, SEL))(void *) objc_msgSend)((id)self, propertyMeta->_getter);
uint8_t num = ((uint8_t (*)(id, SEL))(void *) objc_msgSend)((id)self, propertyMeta->_getter);
((void (*)(id, SEL, uint8_t))(void *) objc_msgSend)((id)one, propertyMeta->_setter, num);
} break;
case YYEncodingTypeInt16:
Expand Down

0 comments on commit d724d65

Please sign in to comment.