[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
NSMutableArray bug
From: |
kelvin |
Subject: |
NSMutableArray bug |
Date: |
Mon, 9 Dec 2002 15:58:44 -0800 (PST) |
Hi,
There's a bug in NSMutableArray removeObjectsFromIndices:numIndices
I believe this line:
while (i > 0 && sorted[i] > val)
should in fact be
while (i > 0 && sorted[i - 1] > val)
since sorted[i] will be unitialized the first iteration, and
sorted[0] would otherwise never be looked at.
Thank you,
Kelvin Sherlock
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- NSMutableArray bug,
kelvin <=