Permalink
Browse files

Fixed 32bit arch, format string warning.

  • Loading branch information...
1 parent 825dcf1 commit 1929fb55ad61a9a0882b3d58c5449d818cfe1c4a Josh Orr committed Jun 25, 2012
Showing with 2 additions and 1 deletion.
  1. +1 −0 CHCSVParser.h
  2. +1 −1 CHCSVParser.m
View
@@ -43,6 +43,7 @@
NSMutableData *currentChunk;
NSMutableString *currentChunkString;
+ NSUInteger chunkSize;
NSUInteger stringIndex;
BOOL balancedQuotes;
View
@@ -466,7 +466,7 @@ - (void) processComposedCharacter:(NSString *)currentCharacter previousCharacter
}
} else {
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]];
return;
}

0 comments on commit 1929fb5

Please sign in to comment.