Skip to content

Commit

Permalink
Merge pull request #13 from joshorr/master
Browse files Browse the repository at this point in the history
32bit compatability + format string warning fix.
  • Loading branch information
davedelong committed Jun 25, 2012
2 parents 825dcf1 + 1929fb5 commit 8b2cbb8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHCSVParser.h
Expand Up @@ -43,6 +43,7 @@


NSMutableData *currentChunk; NSMutableData *currentChunk;
NSMutableString *currentChunkString; NSMutableString *currentChunkString;
NSUInteger chunkSize;
NSUInteger stringIndex; NSUInteger stringIndex;


BOOL balancedQuotes; BOOL balancedQuotes;
Expand Down
2 changes: 1 addition & 1 deletion CHCSVParser.m
Expand Up @@ -466,7 +466,7 @@ - (void) processComposedCharacter:(NSString *)currentCharacter previousCharacter
} }
} else { } else {
if (previousUnichar == UNICHAR_QUOTE && previousPreviousUnichar != UNICHAR_BACKSLASH && balancedQuotes == YES && balancedEscapes == YES) { if (previousUnichar == UNICHAR_QUOTE && previousPreviousUnichar != UNICHAR_BACKSLASH && balancedQuotes == YES && balancedEscapes == YES) {
NSString *reason = [NSString stringWithFormat:@"Invalid CSV format on line #%lu immediately after \"%@\"", currentLine, currentField]; NSString *reason = [NSString stringWithFormat:@"Invalid CSV format on line #%lu immediately after \"%@\"", (unsigned long)currentLine, currentField];
error = [[NSError alloc] initWithDomain:CHCSVErrorDomain code:CHCSVErrorCodeInvalidFormat userInfo:[NSDictionary dictionaryWithObject:reason forKey:NSLocalizedDescriptionKey]]; error = [[NSError alloc] initWithDomain:CHCSVErrorDomain code:CHCSVErrorCodeInvalidFormat userInfo:[NSDictionary dictionaryWithObject:reason forKey:NSLocalizedDescriptionKey]];
return; return;
} }
Expand Down

0 comments on commit 8b2cbb8

Please sign in to comment.