mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-20 12:16:40 +00:00
Fix for MacOS-X compatibility accessing ivars directly
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@26312 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
7a252286dc
commit
68e50feb65
2 changed files with 4 additions and 2 deletions
|
@ -206,10 +206,10 @@ static id ValueForKey(NSObject *self, const char *key, unsigned size)
|
|||
{
|
||||
buf[4] = lo;
|
||||
buf[3] = '_';
|
||||
name = &buf[4]; // key
|
||||
name = &buf[3]; // _key
|
||||
if (GSObjCFindVariable(self, name, &type, &size, &off) == NO)
|
||||
{
|
||||
name = &buf[3]; // _key
|
||||
name = &buf[4]; // key
|
||||
GSObjCFindVariable(self, name, &type, &size, &off);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue