mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 09:04:13 +00:00
fix bug lookuing up class version for coder
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36510 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
04cf3fd8da
commit
983e9d1775
2 changed files with 10 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
|||
2013-04-12 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSPortCoder.m:
|
||||
Fix bug looking up class version information.
|
||||
|
||||
2013-04-10 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSScanner.m: improve the algoritm for parsing double values
|
||||
|
|
|
@ -422,7 +422,8 @@ static unsigned encodingVersion;
|
|||
{
|
||||
unsigned count = GSIArrayCount(_clsAry);
|
||||
|
||||
while (count-- > 0)
|
||||
// Zero'th item is nul
|
||||
while (count-- > 1)
|
||||
{
|
||||
RELEASE(GSIArrayItemAtIndex(_clsAry, count).obj);
|
||||
}
|
||||
|
@ -2042,10 +2043,11 @@ static unsigned encodingVersion;
|
|||
}
|
||||
if ([_cInfo count] == 0)
|
||||
{
|
||||
while (count-- > 0)
|
||||
// Zero'th item is nul
|
||||
while (count-- > 1)
|
||||
{
|
||||
info = GSIArrayItemAtIndex(_clsAry, count).obj;
|
||||
if (info->class != 0)
|
||||
if (0 != info->class)
|
||||
{
|
||||
[_cInfo setObject: info forKey: NSStringFromClass(info->class)];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue