Bugfix decoding

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@22284 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
CaS 2006-01-10 20:37:21 +00:00
parent e9c3e498b7
commit 7d11eb6607
2 changed files with 4 additions and 2 deletions

View file

@ -1770,7 +1770,7 @@ failure:
unsigned length = [self length];
void *bytes = [self mutableBytes];
[aCoder encodeValueOfObjCType: @encode(unsigned long)
[aCoder encodeValueOfObjCType: @encode(unsigned int)
at: &length];
if (length)
{
@ -1802,7 +1802,7 @@ failure:
zone = [self zone];
#endif
[aCoder decodeValueOfObjCType: @encode(unsigned long) at: &l];
[aCoder decodeValueOfObjCType: @encode(unsigned int) at: &l];
if (l)
{
void *b = NSZoneMalloc(zone, l);