From ab149785a4d036aa634af5ae857a81b0e6a40e45 Mon Sep 17 00:00:00 2001 From: yulidong Date: Mon, 5 Mar 2018 09:07:56 +0800 Subject: [PATCH] Fix type cast --- YYModel/NSObject+YYModel.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/YYModel/NSObject+YYModel.m b/YYModel/NSObject+YYModel.m index 3d7c470..777181c 100644 --- a/YYModel/NSObject+YYModel.m +++ b/YYModel/NSObject+YYModel.m @@ -1563,7 +1563,7 @@ - (id)yy_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: