diff options
author | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-01-03 12:17:59 +0000 |
---|---|---|
committer | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-01-03 12:17:59 +0000 |
commit | 73556f5f6c5d835df3baa9979de74da7bd85cd05 (patch) | |
tree | ac76e75c45976914468f05d9d01c6dab44ff831c /libobjc/ivars.c | |
parent | 009b254c18c50184aadbc41673222104cec47838 (diff) | |
download | gcc-73556f5f6c5d835df3baa9979de74da7bd85cd05.tar.gz |
2011-01-03 Basile Starynkevitch <basile@starynkevitch.net>
MELT branch merged with trunk rev 168414
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@168419 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libobjc/ivars.c')
-rw-r--r-- | libobjc/ivars.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libobjc/ivars.c b/libobjc/ivars.c index 7527df804d2..6111a03ea16 100644 --- a/libobjc/ivars.c +++ b/libobjc/ivars.c @@ -212,7 +212,7 @@ struct objc_ivar ** class_copyIvarList (Class class_, unsigned int *numberOfRetu BOOL class_addIvar (Class class_, const char * ivar_name, size_t size, - unsigned char alignment, const char *type) + unsigned char log_2_of_alignment, const char *type) { struct objc_ivar_list *ivars; @@ -270,6 +270,7 @@ class_addIvar (Class class_, const char * ivar_name, size_t size, size. */ { struct objc_ivar *ivar = &(ivars->ivar_list[ivars->ivar_count - 1]); + unsigned int alignment = 1 << log_2_of_alignment; int misalignment; ivar->ivar_name = objc_malloc (strlen (ivar_name) + 1); |