mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
64bit cleanup
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30755 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
f5db0d8948
commit
9b8df83971
1 changed files with 9 additions and 9 deletions
|
@ -3359,7 +3359,7 @@ isEqualFunc(const void *item1, const void *item2,
|
|||
{
|
||||
int oid;
|
||||
|
||||
oid = (int)(NSInteger)[objectList objectForKey: object];
|
||||
oid = (NSInteger)[objectList objectForKey: object];
|
||||
if (oid <= 0)
|
||||
{
|
||||
[NSException raise: NSGenericException
|
||||
|
@ -3494,22 +3494,22 @@ isEqualFunc(const void *item1, const void *item2,
|
|||
[dest appendBytes: meta length: 32];
|
||||
}
|
||||
|
||||
- (unsigned int) indexForObject: (id)object
|
||||
- (NSInteger) indexForObject: (id)object
|
||||
{
|
||||
int index;
|
||||
NSInteger index;
|
||||
|
||||
index = (int)(intptr_t)[objectList objectForKey: object];
|
||||
index = (NSInteger)[objectList objectForKey: object];
|
||||
if (index <= 0)
|
||||
{
|
||||
index = [objectList count];
|
||||
[objectList setObject: (id)(intptr_t)(++index) forKey: object];
|
||||
[objectList setObject: (id)(++index) forKey: object];
|
||||
[objectsToDoList addObject: object];
|
||||
}
|
||||
|
||||
return index - 1;
|
||||
}
|
||||
|
||||
- (void) storeIndex: (unsigned int)index
|
||||
- (void) storeIndex: (NSInteger)index
|
||||
{
|
||||
if (index_size == 1)
|
||||
{
|
||||
|
@ -3795,7 +3795,7 @@ isEqualFunc(const void *item1, const void *item2,
|
|||
for (i = 0; i < len; i++)
|
||||
{
|
||||
id obj;
|
||||
unsigned int oid;
|
||||
NSInteger oid;
|
||||
|
||||
obj = [array objectAtIndex: i];
|
||||
oid = [self indexForObject: obj];
|
||||
|
@ -3863,7 +3863,7 @@ isEqualFunc(const void *item1, const void *item2,
|
|||
for (i = 0; i < len; i++)
|
||||
{
|
||||
id obj;
|
||||
unsigned int oid;
|
||||
NSInteger oid;
|
||||
|
||||
obj = [keys objectAtIndex: i];
|
||||
oid = [self indexForObject: obj];
|
||||
|
@ -3873,7 +3873,7 @@ isEqualFunc(const void *item1, const void *item2,
|
|||
for (i = 0; i < len; i++)
|
||||
{
|
||||
id obj;
|
||||
unsigned int oid;
|
||||
NSInteger oid;
|
||||
|
||||
obj = [objects objectAtIndex: i];
|
||||
oid = [self indexForObject: obj];
|
||||
|
|
Loading…
Reference in a new issue