Commits

Jens Alfke committed 50c4f26

Fixed signed/unsigned warnings in Base64.m.

Comments (0)

Files changed (1)

     NSUInteger length = self.length;
     char out[2*length+1];
     char *dst = &out[0];
-    for( int i=0; i<length; i+=1 )
+    for( NSUInteger i=0; i<length; i+=1 )
         dst += sprintf(dst,"%02X",*(bytes++));
     return [[[NSString alloc] initWithBytes: out length: 2*length encoding: NSASCIIStringEncoding]
             autorelease];
     unsigned int size= [self length];
     const unsigned char *p = [self bytes];
     unsigned char c;
-    int n;
+    unsigned int n;
     char bytestr[4] = {0};
     char addrstr[10] = {0};
     char hexstr[ 16*3 + 5] = {0};