Fixed a few compiler warnings.
authorJens Alfke <jens@mooseyard.com>
Wed Apr 22 16:46:38 2009 -0700 (2009-04-22)
changeset 26252c13061ee5
parent 25 47d10ac2d04e
child 27 256370e8935a
Fixed a few compiler warnings.
ConcurrentOperation.m
Target.m
     1.1 --- a/ConcurrentOperation.m	Sun Apr 12 22:00:36 2009 -0700
     1.2 +++ b/ConcurrentOperation.m	Wed Apr 22 16:46:38 2009 -0700
     1.3 @@ -7,6 +7,7 @@
     1.4  //
     1.5  
     1.6  #import "ConcurrentOperation.h"
     1.7 +#import "Test.h"
     1.8  
     1.9  // See file:///Developer/Documentation/DocSets/com.apple.ADC_Reference_Library.CoreReference.docset/Contents/Resources/Documents/documentation/Cocoa/Reference/NSOperation_class/Reference/Reference.html
    1.10  
     2.1 --- a/Target.m	Sun Apr 12 22:00:36 2009 -0700
     2.2 +++ b/Target.m	Wed Apr 22 16:46:38 2009 -0700
     2.3 @@ -84,10 +84,10 @@
     2.4      if( [_invocations isKindOfClass: [NSInvocation class]] && [t->_invocations isKindOfClass: [NSInvocation class]] )
     2.5          return equalInvocations(_invocations,t->_invocations);
     2.6      NSArray *myInvocations = self.invocations, *itsInvocations = t.invocations;
     2.7 -    unsigned n = myInvocations.count;
     2.8 +    NSUInteger n = myInvocations.count;
     2.9      if( n != itsInvocations.count )
    2.10          return NO;
    2.11 -    for( int i=0; i<n; i++ )
    2.12 +    for( NSUInteger i=0; i<n; i++ )
    2.13          if( ! equalInvocations( [myInvocations objectAtIndex: i],
    2.14                                  [itsInvocations objectAtIndex: i] ) )
    2.15              return NO;