mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
Fix for nonfragile-abi
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38825 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
a4d1a09c89
commit
d4234288d5
3 changed files with 14 additions and 2 deletions
|
@ -827,11 +827,14 @@ const NSHashTableCallBacks NSPointerToStructHashCallBacks =
|
|||
|
||||
@implementation NSConcreteHashTable
|
||||
|
||||
static unsigned instanceSize = 0;
|
||||
|
||||
+ (void) initialize
|
||||
{
|
||||
if (concreteClass == Nil)
|
||||
{
|
||||
concreteClass = [NSConcreteHashTable class];
|
||||
instanceSize = class_getInstanceSize(concreteClass);
|
||||
}
|
||||
#if GS_WITH_GC
|
||||
/* We create a typed memory descriptor for hash nodes.
|
||||
|
@ -1084,7 +1087,7 @@ const NSHashTableCallBacks NSPointerToStructHashCallBacks =
|
|||
* }
|
||||
* GSIMapEndEnumerator(&enumerator);
|
||||
*/
|
||||
size += GSIMapSize(self) - sizeof(GSI_MAP_TABLE_T);
|
||||
size += GSIMapSize(self) - instanceSize;
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue