mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
Use objc_sizeOfType()
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29796 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
95af1ab7ac
commit
312eb20503
1 changed files with 3 additions and 3 deletions
|
@ -442,7 +442,7 @@ GSObjCFindVariable(id obj, const char *name,
|
|||
}
|
||||
if (size != 0)
|
||||
{
|
||||
*size = objc_sizeof_type(enc);
|
||||
*size = objc_sizeOfType(enc);
|
||||
}
|
||||
if (offset != 0)
|
||||
{
|
||||
|
@ -480,7 +480,7 @@ GSObjCFindVariable(id obj, const char *name,
|
|||
if (type)
|
||||
*type = ivar->ivar_type;
|
||||
if (size)
|
||||
*size = objc_sizeof_type(ivar->ivar_type);
|
||||
*size = objc_sizeOfType(ivar->ivar_type);
|
||||
if (offset)
|
||||
*offset = ivar->ivar_offset;
|
||||
return YES;
|
||||
|
@ -803,7 +803,7 @@ GSObjCMakeClass(NSString *name, NSString *superName, NSDictionary *iVars)
|
|||
|
||||
// align the ivar (i.e. put it on the first aligned address
|
||||
ivar->ivar_offset = iVarSize;
|
||||
iVarSize += objc_sizeof_type(ivar->ivar_type); // add the ivar size
|
||||
iVarSize += objc_sizeOfType(ivar->ivar_type); // add the ivar size
|
||||
ivar = ivar + 1;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue