From 0c91f439a5b23e1b5a6d8139eb47aa5694e2925f Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Fri, 24 Feb 2012 00:30:18 +0000 Subject: Improvements to SPMySQL framework: - Correctly record affected rows - Fix thread safety/autorelease issues when draining pools during fast iteration - Improve streaming result processing speed --- .../Source/SPMySQLResult Categories/Convenience Methods.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Frameworks/SPMySQLFramework/Source/SPMySQLResult Categories') diff --git a/Frameworks/SPMySQLFramework/Source/SPMySQLResult Categories/Convenience Methods.m b/Frameworks/SPMySQLFramework/Source/SPMySQLResult Categories/Convenience Methods.m index 7e3619e1..2b049264 100644 --- a/Frameworks/SPMySQLFramework/Source/SPMySQLResult Categories/Convenience Methods.m +++ b/Frameworks/SPMySQLFramework/Source/SPMySQLResult Categories/Convenience Methods.m @@ -49,7 +49,7 @@ // If the number of rows is known, pre-set the size; otherwise just create an array if (numberOfRows != NSNotFound) { - rowsToReturn = [[NSMutableArray alloc] initWithCapacity:numberOfRows]; + rowsToReturn = [[NSMutableArray alloc] initWithCapacity:(NSUInteger)numberOfRows]; } else { rowsToReturn = [[NSMutableArray alloc] init]; } -- cgit v1.2.3