mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-11 00:30:49 +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>
|
2012-10-18 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
* Source/NSXMLParser.m: Try to fix entity parsing bug #37596
|
* 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)
|
if ([IrequestModes containsObject: mode] == NO)
|
||||||
{
|
{
|
||||||
unsigned c = [IrunLoops count];
|
NSUInteger c = [IrunLoops count];
|
||||||
|
|
||||||
while (c-- > 0)
|
while (c-- > 0)
|
||||||
{
|
{
|
||||||
|
@ -857,7 +857,7 @@ static NSLock *cached_proxies_gate = nil;
|
||||||
{
|
{
|
||||||
if ([IrunLoops indexOfObjectIdenticalTo: loop] == NSNotFound)
|
if ([IrunLoops indexOfObjectIdenticalTo: loop] == NSNotFound)
|
||||||
{
|
{
|
||||||
unsigned c = [IrequestModes count];
|
NSUInteger c = [IrequestModes count];
|
||||||
|
|
||||||
while (c-- > 0)
|
while (c-- > 0)
|
||||||
{
|
{
|
||||||
|
@ -1131,7 +1131,7 @@ static NSLock *cached_proxies_gate = nil;
|
||||||
*/
|
*/
|
||||||
if (parent != nil)
|
if (parent != nil)
|
||||||
{
|
{
|
||||||
unsigned count;
|
NSUInteger count;
|
||||||
|
|
||||||
ImultipleThreads = GSIVar(parent, _multipleThreads);
|
ImultipleThreads = GSIVar(parent, _multipleThreads);
|
||||||
IindependentQueueing = GSIVar(parent, _independentQueueing);
|
IindependentQueueing = GSIVar(parent, _independentQueueing);
|
||||||
|
@ -1331,7 +1331,7 @@ static NSLock *cached_proxies_gate = nil;
|
||||||
if (IlocalTargets != 0)
|
if (IlocalTargets != 0)
|
||||||
{
|
{
|
||||||
NSMutableArray *targets;
|
NSMutableArray *targets;
|
||||||
unsigned i = IlocalTargets->nodeCount;
|
NSUInteger i = IlocalTargets->nodeCount;
|
||||||
GSIMapEnumerator_t enumerator;
|
GSIMapEnumerator_t enumerator;
|
||||||
GSIMapNode node;
|
GSIMapNode node;
|
||||||
|
|
||||||
|
@ -1560,7 +1560,7 @@ static NSLock *cached_proxies_gate = nil;
|
||||||
GS_M_LOCK(IrefGate);
|
GS_M_LOCK(IrefGate);
|
||||||
if (IrequestModes != nil && [IrequestModes containsObject: mode])
|
if (IrequestModes != nil && [IrequestModes containsObject: mode])
|
||||||
{
|
{
|
||||||
unsigned c = [IrunLoops count];
|
NSUInteger c = [IrunLoops count];
|
||||||
|
|
||||||
while (c-- > 0)
|
while (c-- > 0)
|
||||||
{
|
{
|
||||||
|
@ -1587,7 +1587,7 @@ static NSLock *cached_proxies_gate = nil;
|
||||||
|
|
||||||
if (pos != NSNotFound)
|
if (pos != NSNotFound)
|
||||||
{
|
{
|
||||||
unsigned c = [IrequestModes count];
|
NSUInteger c = [IrequestModes count];
|
||||||
|
|
||||||
while (c-- > 0)
|
while (c-- > 0)
|
||||||
{
|
{
|
||||||
|
@ -2291,7 +2291,7 @@ static NSLock *cached_proxies_gate = nil;
|
||||||
&& (type == METHOD_REQUEST || type == METHOD_REPLY))
|
&& (type == METHOD_REQUEST || type == METHOD_REPLY))
|
||||||
{
|
{
|
||||||
NSData *d;
|
NSData *d;
|
||||||
unsigned count = [components count];
|
NSUInteger count = [components count];
|
||||||
|
|
||||||
d = RETAIN([components objectAtIndex: --count]);
|
d = RETAIN([components objectAtIndex: --count]);
|
||||||
[components removeObjectAtIndex: count];
|
[components removeObjectAtIndex: count];
|
||||||
|
@ -3297,7 +3297,7 @@ static NSLock *cached_proxies_gate = nil;
|
||||||
- (NSPortCoder*) _makeInRmc: (NSMutableArray*)components
|
- (NSPortCoder*) _makeInRmc: (NSMutableArray*)components
|
||||||
{
|
{
|
||||||
NSPortCoder *coder;
|
NSPortCoder *coder;
|
||||||
unsigned count;
|
NSUInteger count;
|
||||||
|
|
||||||
NSParameterAssert(IisValid);
|
NSParameterAssert(IisValid);
|
||||||
|
|
||||||
|
@ -3332,7 +3332,7 @@ static NSLock *cached_proxies_gate = nil;
|
||||||
- (NSPortCoder*) _makeOutRmc: (int)sno generate: (int*)ret reply: (BOOL)rep
|
- (NSPortCoder*) _makeOutRmc: (int)sno generate: (int*)ret reply: (BOOL)rep
|
||||||
{
|
{
|
||||||
NSPortCoder *coder;
|
NSPortCoder *coder;
|
||||||
unsigned count;
|
NSUInteger count;
|
||||||
|
|
||||||
NSParameterAssert(IisValid);
|
NSParameterAssert(IisValid);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue