mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 09:04:13 +00:00
Bugfix - indexOfObject:
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@3044 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
b25aac96ce
commit
c80250ed90
1 changed files with 2 additions and 4 deletions
|
@ -157,10 +157,8 @@
|
|||
unsigned i;
|
||||
|
||||
for (i = 0; i < _count; i++) {
|
||||
if ([_contents_array[i] hash] == hash) {
|
||||
if ([_contents_array[i] isEqual: anObject]) {
|
||||
return i;
|
||||
}
|
||||
if ([_contents_array[i] isEqual: anObject]) {
|
||||
return i;
|
||||
}
|
||||
}
|
||||
return NSNotFound;
|
||||
|
|
Loading…
Reference in a new issue