([Decoder +readSignatureFromCStream:getClassname:formatVersion:]):

Compare got with 6, not 2.
([Decoder -_coderCreateReferenceForObject:]): Add warning comment
about a -retain we don't want.  Fix this eventually!


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1058 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Andrew McCallum 1996-03-06 14:07:17 +00:00
parent 14700c26f3
commit e14e479e6b

View file

@ -53,7 +53,7 @@
&minor_version,
&subminor_version,
name, version];
if (got != 2)
if (got != 6)
[NSException raise: CoderSignatureMalformedException
format: @"Decoder found a malformed signature"];
}
@ -123,7 +123,7 @@
Encoders, which start at 1. */
[xref_2_object appendObject: [NSObject new]];
}
[xref_2_object appendObject: anObj];
[xref_2_object appendObject: anObj]; // xxx but this will retain anObj. NO.
/* This return value should be the same as the index of anObj
in xref_2_object. */
return ([xref_2_object count] - 1);