From: znek Date: Sun, 17 Dec 2006 16:51:50 +0000 (+0000) Subject: gnu runtime bugfix X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1b66c359e8e4132f000c13e15aa5391bf2457e0f;p=sope gnu runtime bugfix git-svn-id: http://svn.opengroupware.org/SOPE/trunk@1392 e4a50df8-12e2-0310-a44c-efbce7f8a7e3 --- diff --git a/sope-core/EOControl/ChangeLog b/sope-core/EOControl/ChangeLog index e742bdf5..d38d2939 100644 --- a/sope-core/EOControl/ChangeLog +++ b/sope-core/EOControl/ChangeLog @@ -1,3 +1,8 @@ +2006-12-17 Marcus Mueller + + * EOKeyValueCoding.m: fixed a runtime portability issue - removed + +initialize on NSArray category (v4.5.71) + 2006-12-02 Marcus Mueller * EOKeyValueCoding.m: fixed numerous bugs in the computeXXX: methods diff --git a/sope-core/EOControl/EOControl.xcodeproj/project.pbxproj b/sope-core/EOControl/EOControl.xcodeproj/project.pbxproj index 46ba9dd9..a356bec4 100644 --- a/sope-core/EOControl/EOControl.xcodeproj/project.pbxproj +++ b/sope-core/EOControl/EOControl.xcodeproj/project.pbxproj @@ -370,7 +370,7 @@ buildSettings = { COPY_PHASE_STRIP = NO; DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 4.5.70; + DYLIB_CURRENT_VERSION = 4.5.71; FRAMEWORK_VERSION = A; GCC_GENERATE_DEBUGGING_SYMBOLS = YES; GCC_OPTIMIZATION_LEVEL = 0; @@ -409,7 +409,7 @@ DEPLOYMENT_POSTPROCESSING = YES; DSTROOT = /; DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 4.5.70; + DYLIB_CURRENT_VERSION = 4.5.71; DYLIB_INSTALL_NAME_BASE = "@executable_path/../Frameworks/"; FRAMEWORK_SEARCH_PATHS = "$(USER_LIBRARY_DIR)/EmbeddedFrameworks"; FRAMEWORK_VERSION = A; @@ -451,7 +451,7 @@ isa = XCBuildConfiguration; buildSettings = { DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 4.5.70; + DYLIB_CURRENT_VERSION = 4.5.71; FRAMEWORK_VERSION = A; GCC_PRECOMPILE_PREFIX_HEADER = YES; GCC_PREFIX_HEADER = common.h; diff --git a/sope-core/EOControl/EOKeyValueCoding.m b/sope-core/EOControl/EOKeyValueCoding.m index c790f614..7d9f24d1 100644 --- a/sope-core/EOControl/EOKeyValueCoding.m +++ b/sope-core/EOControl/EOKeyValueCoding.m @@ -1420,20 +1420,15 @@ static void doubleIvarSetFunc(void* info1, void* info2, id self, id val) { @implementation NSArray(EOKeyValueCoding) -static Class NSDecimalNumberClass = Nil; - -+ (void)initialize { - static BOOL didInit = NO; - if (didInit) return; - didInit = YES; - NSDecimalNumberClass = [NSDecimalNumber class]; -} - - (id)computeSumForKey:(NSString *)_key { + static Class NSDecimalNumberClass; id (*objAtIdx)(id, SEL, unsigned int); unsigned i, cc = [self count]; NSDecimalNumber *sum; + if (NSDecimalNumberClass == Nil) + NSDecimalNumberClass = [NSDecimalNumber class]; + sum = [NSDecimalNumber zero]; if (cc == 0) return sum; diff --git a/sope-core/EOControl/Version b/sope-core/EOControl/Version index 51ff5d23..1adf4e06 100644 --- a/sope-core/EOControl/Version +++ b/sope-core/EOControl/Version @@ -1,3 +1,3 @@ # version file -SUBMINOR_VERSION:=70 +SUBMINOR_VERSION:=71