Base64.m
changeset 35 5cab3034d3a1
parent 11 e5976864dfe9
     1.1 --- a/Base64.m	Sat May 24 13:24:33 2008 -0700
     1.2 +++ b/Base64.m	Wed Sep 02 08:41:25 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};