From 75793d341215cdd7ff2d40e71ad594e06b87bd8d Mon Sep 17 00:00:00 2001 From: FredKiefer Date: Mon, 21 Jun 2004 09:45:13 +0000 Subject: [PATCH] Corrected NSIndexSet index iteration. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@19569 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 5 +++++ Source/NSIndexSet.m | 8 -------- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/ChangeLog b/ChangeLog index 7043c0552..4a0857625 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-06-21 Fred Kiefer + + * Source/NSIndexSet.m: (-indexGreaterThanOrEqualToIndex, + -indexGreaterThanIndex:) removed incorrect special case handling. + 2004-06-20 Richard Frith-Macdonald * Source/NSUserDefaults.m: ([initForUser:]) carry on and initialise diff --git a/Source/NSIndexSet.m b/Source/NSIndexSet.m index 26128707e..b2a67f4da 100644 --- a/Source/NSIndexSet.m +++ b/Source/NSIndexSet.m @@ -321,10 +321,6 @@ static unsigned posForIndex(GSIArray array, unsigned index) { return anIndex; } - if (++pos >= GSIArrayCount(_array)) - { - return NSNotFound; - } r = GSIArrayItemAtIndex(_array, pos).ext; return r.location; } @@ -352,10 +348,6 @@ static unsigned posForIndex(GSIArray array, unsigned index) { return r.location; } - if (++pos >= GSIArrayCount(_array)) - { - return NSNotFound; - } r = GSIArrayItemAtIndex(_array, pos).ext; return r.location; }