mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
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:
parent
e9c3e498b7
commit
7d11eb6607
2 changed files with 4 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue