From 1929fb55ad61a9a0882b3d58c5449d818cfe1c4a Mon Sep 17 00:00:00 2001 From: Josh Orr Date: Mon, 25 Jun 2012 10:37:08 -0600 Subject: [PATCH] Fixed 32bit arch, format string warning. --- CHCSVParser.h | 1 + CHCSVParser.m | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHCSVParser.h b/CHCSVParser.h index 6a7a198..7140cab 100644 --- a/CHCSVParser.h +++ b/CHCSVParser.h @@ -43,6 +43,7 @@ NSMutableData *currentChunk; NSMutableString *currentChunkString; + NSUInteger chunkSize; NSUInteger stringIndex; BOOL balancedQuotes; diff --git a/CHCSVParser.m b/CHCSVParser.m index c9dc9e8..bcc1b69 100644 --- a/CHCSVParser.m +++ b/CHCSVParser.m @@ -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; }