From b50e9b5daa4402ae0b834e939b48964de7bb7feb Mon Sep 17 00:00:00 2001 From: Neeeo Date: Mon, 22 Jun 2020 13:52:57 +0800 Subject: [PATCH] rename standardValueWithTypeCode -> mj_standardValueWithTypeCode (#776) --- MJExtension/NSObject+MJKeyValue.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MJExtension/NSObject+MJKeyValue.m b/MJExtension/NSObject+MJKeyValue.m index 2ede082b..f5ab97c2 100755 --- a/MJExtension/NSObject+MJKeyValue.m +++ b/MJExtension/NSObject+MJKeyValue.m @@ -18,7 +18,7 @@ @implementation NSDecimalNumber(MJKeyValue) -- (id)standardValueWithTypeCode:(NSString *)typeCode { +- (id)mj_standardValueWithTypeCode:(NSString *)typeCode { // 由于这里涉及到编译器问题, 暂时保留 Long, 实际上在 64 位系统上, 这 2 个精度范围相同, // 32 位略有不同, 其余都可使用 Double 进行强转不丢失精度 if ([typeCode isEqualToString:MJPropertyTypeLongLong]) { @@ -187,7 +187,7 @@ - (instancetype)mj_setKeyValues:(id)keyValues context:(NSManagedObjectContext *) if (decimalValue == NSDecimalNumber.notANumber) { value = @(0); }else if (propertyClass != [NSDecimalNumber class]) { - value = [decimalValue standardValueWithTypeCode:type.code]; + value = [decimalValue mj_standardValueWithTypeCode:type.code]; } else { value = decimalValue; }