Fixed signed/unsigned warnings in Base64.m.
authorJens Alfke <jens@mooseyard.com>
Mon Aug 10 08:29:32 2009 -0700 (2009-08-10)
changeset 3450c4f26bcc1b
parent 33 d52f6b0d94be
child 35 5cab3034d3a1
Fixed signed/unsigned warnings in Base64.m.
Base64.m
     1.1 --- a/Base64.m	Wed Jul 01 14:04:56 2009 -0700
     1.2 +++ b/Base64.m	Mon Aug 10 08:29:32 2009 -0700
     1.3 @@ -101,7 +101,7 @@
     1.4      NSUInteger length = self.length;
     1.5      char out[2*length+1];
     1.6      char *dst = &out[0];
     1.7 -    for( int i=0; i<length; i+=1 )
     1.8 +    for( NSUInteger i=0; i<length; i+=1 )
     1.9          dst += sprintf(dst,"%02X",*(bytes++));
    1.10      return [[[NSString alloc] initWithBytes: out length: 2*length encoding: NSASCIIStringEncoding]
    1.11              autorelease];
    1.12 @@ -120,7 +120,7 @@
    1.13      unsigned int size= [self length];
    1.14      const unsigned char *p = [self bytes];
    1.15      unsigned char c;
    1.16 -    int n;
    1.17 +    unsigned int n;
    1.18      char bytestr[4] = {0};
    1.19      char addrstr[10] = {0};
    1.20      char hexstr[ 16*3 + 5] = {0};