From b3ce89a609edf23e4c1db88bfb04d0e08d5033a4 Mon Sep 17 00:00:00 2001 From: rfm Date: Sun, 6 Aug 2006 05:27:44 +0000 Subject: [PATCH] fix bug 17069 git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@23210 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 2 ++ Source/Additions/GSObjCRuntime.m | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 0bc08908c..e83c15102 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,8 @@ * Source/NSPredicate.m: Reorganize initialisation of scanner to avoid implicit cast of zero to a va_listt (fix bug #17336) + * Source/Additions/GSObjCRuntime.m: GSObjCMakeClass() fix incorrect + calculation of ivar size/offset information as reported in bug #17069 2006-08-04 23:26-EDT Gregory John Casamento diff --git a/Source/Additions/GSObjCRuntime.m b/Source/Additions/GSObjCRuntime.m index 1110309fb..452274c9f 100644 --- a/Source/Additions/GSObjCRuntime.m +++ b/Source/Additions/GSObjCRuntime.m @@ -506,7 +506,6 @@ GSObjCMakeClass(NSString *name, NSString *superName, NSDictionary *iVars) ivar->ivar_type = tmp; // align the ivar (i.e. put it on the first aligned address - iVarSize = objc_aligned_size(ivar->ivar_type); ivar->ivar_offset = iVarSize; iVarSize += objc_sizeof_type(ivar->ivar_type); // add the ivar size ivar = ivar + 1;