mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 09:04:13 +00:00
Fix problem as reported by James Cook <mokus@deepbondi.net>
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35088 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
cadd1fb46c
commit
97261ea781
2 changed files with 10 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
2012-04-17 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/ObjectiveC2/runtime.c: Fi error calculating instance
|
||||
variable offset size as reported/suggested by James Cook
|
||||
<mokus@deepbondi.net>
|
||||
|
||||
2012-04-16 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* configure.ac: Add tests for lossy conversion using iconv and
|
||||
|
|
|
@ -182,7 +182,10 @@ class_addIvar(Class cls, const char *name,
|
|||
// Round up the offset of the ivar so it is correctly aligned.
|
||||
off = cls->instance_size >> alignment;
|
||||
if (off << alignment != cls->instance_size)
|
||||
off = (off + 1) << alignment;
|
||||
{
|
||||
off++;
|
||||
}
|
||||
off = off << alignment;
|
||||
ivar->ivar_offset = off;
|
||||
// Increase the instance size to make space for this.
|
||||
cls->instance_size = ivar->ivar_offset + size;
|
||||
|
|
Loading…
Reference in a new issue