Skip to content
Browse files

Made QSStrings 64-bit clean.

  • Loading branch information...
1 parent 45d6eb3 commit ce2474b323c35033654b0df978dee623d41c64ad @JensAyton JensAyton committed Jun 29, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 QSStrings.m
View
4 QSStrings.m
@@ -152,7 +152,7 @@ + (NSString *)encodeBase64WithData:(NSData *)objData {
char * strResult;
// Get the Raw Data length and ensure we actually have data
- int intLength = [objData length];
+ size_t intLength = [objData length];
if (intLength == 0) return nil;
// Setup the String-based Result placeholder and pointer within that placeholder
@@ -192,7 +192,7 @@ + (NSString *)encodeBase64WithData:(NSData *)objData {
+ (NSData *)decodeBase64WithString:(NSString *)strBase64 {
const char * objPointer = [strBase64 cStringUsingEncoding:NSASCIIStringEncoding];
if (objPointer == NULL) return nil;
- int intLength = strlen(objPointer);
+ size_t intLength = strlen(objPointer);
int intCurrent;
int i = 0, j = 0, k;

0 comments on commit ce2474b

Please sign in to comment.
Something went wrong with that request. Please try again.