([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:
mccallum 1996-03-01 16:01:33 +00:00
parent 817c1e5677
commit c9a822d789

View file

@ -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);
}