mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-10 16:20:42 +00:00
array index fix on 64bit systems
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35728 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
1073f46bb0
commit
c2990900fd
2 changed files with 14 additions and 10 deletions
|
@ -1,3 +1,7 @@
|
|||
2012-10-20 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSConnection.m: Use NSUInteger for array indexes/counters.
|
||||
|
||||
2012-10-18 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSXMLParser.m: Try to fix entity parsing bug #37596
|
||||
|
|
|
@ -832,7 +832,7 @@ static NSLock *cached_proxies_gate = nil;
|
|||
{
|
||||
if ([IrequestModes containsObject: mode] == NO)
|
||||
{
|
||||
unsigned c = [IrunLoops count];
|
||||
NSUInteger c = [IrunLoops count];
|
||||
|
||||
while (c-- > 0)
|
||||
{
|
||||
|
@ -857,7 +857,7 @@ static NSLock *cached_proxies_gate = nil;
|
|||
{
|
||||
if ([IrunLoops indexOfObjectIdenticalTo: loop] == NSNotFound)
|
||||
{
|
||||
unsigned c = [IrequestModes count];
|
||||
NSUInteger c = [IrequestModes count];
|
||||
|
||||
while (c-- > 0)
|
||||
{
|
||||
|
@ -1131,7 +1131,7 @@ static NSLock *cached_proxies_gate = nil;
|
|||
*/
|
||||
if (parent != nil)
|
||||
{
|
||||
unsigned count;
|
||||
NSUInteger count;
|
||||
|
||||
ImultipleThreads = GSIVar(parent, _multipleThreads);
|
||||
IindependentQueueing = GSIVar(parent, _independentQueueing);
|
||||
|
@ -1331,7 +1331,7 @@ static NSLock *cached_proxies_gate = nil;
|
|||
if (IlocalTargets != 0)
|
||||
{
|
||||
NSMutableArray *targets;
|
||||
unsigned i = IlocalTargets->nodeCount;
|
||||
NSUInteger i = IlocalTargets->nodeCount;
|
||||
GSIMapEnumerator_t enumerator;
|
||||
GSIMapNode node;
|
||||
|
||||
|
@ -1560,7 +1560,7 @@ static NSLock *cached_proxies_gate = nil;
|
|||
GS_M_LOCK(IrefGate);
|
||||
if (IrequestModes != nil && [IrequestModes containsObject: mode])
|
||||
{
|
||||
unsigned c = [IrunLoops count];
|
||||
NSUInteger c = [IrunLoops count];
|
||||
|
||||
while (c-- > 0)
|
||||
{
|
||||
|
@ -1587,7 +1587,7 @@ static NSLock *cached_proxies_gate = nil;
|
|||
|
||||
if (pos != NSNotFound)
|
||||
{
|
||||
unsigned c = [IrequestModes count];
|
||||
NSUInteger c = [IrequestModes count];
|
||||
|
||||
while (c-- > 0)
|
||||
{
|
||||
|
@ -2290,8 +2290,8 @@ static NSLock *cached_proxies_gate = nil;
|
|||
if (GSIVar(conn, _authenticateIn) == YES
|
||||
&& (type == METHOD_REQUEST || type == METHOD_REPLY))
|
||||
{
|
||||
NSData *d;
|
||||
unsigned count = [components count];
|
||||
NSData *d;
|
||||
NSUInteger count = [components count];
|
||||
|
||||
d = RETAIN([components objectAtIndex: --count]);
|
||||
[components removeObjectAtIndex: count];
|
||||
|
@ -3297,7 +3297,7 @@ static NSLock *cached_proxies_gate = nil;
|
|||
- (NSPortCoder*) _makeInRmc: (NSMutableArray*)components
|
||||
{
|
||||
NSPortCoder *coder;
|
||||
unsigned count;
|
||||
NSUInteger count;
|
||||
|
||||
NSParameterAssert(IisValid);
|
||||
|
||||
|
@ -3332,7 +3332,7 @@ static NSLock *cached_proxies_gate = nil;
|
|||
- (NSPortCoder*) _makeOutRmc: (int)sno generate: (int*)ret reply: (BOOL)rep
|
||||
{
|
||||
NSPortCoder *coder;
|
||||
unsigned count;
|
||||
NSUInteger count;
|
||||
|
||||
NSParameterAssert(IisValid);
|
||||
|
||||
|
|
Loading…
Reference in a new issue