mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-26 10:11:03 +00:00
([Encoder -_coderCreateReferenceForConstPtr:]): Get xref before
asserting it. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1019 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
817c1e5677
commit
c9a822d789
1 changed files with 2 additions and 2 deletions
|
@ -268,9 +268,9 @@ my_object_is_class(id object)
|
|||
const_ptr_2_xref =
|
||||
NSCreateMapTable (NSNonOwnedPointerOrNullMapKeyCallBacks,
|
||||
NSIntMapValueCallBacks, 0);
|
||||
else
|
||||
assert(! NSMapGet (const_ptr_2_xref, (void*)xref));
|
||||
|
||||
xref = NSCountMapTable (const_ptr_2_xref) + 1;
|
||||
assert (! NSMapGet (const_ptr_2_xref, (void*)xref));
|
||||
NSMapInsert (const_ptr_2_xref, ptr, (void*)xref);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue