Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Made QSStrings 64-bit clean.

  • Loading branch information...
commit ce2474b323c35033654b0df978dee623d41c64ad 1 parent 45d6eb3
@JensAyton JensAyton authored
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;
Please sign in to comment.
Something went wrong with that request. Please try again.