diff options
author | stuconnolly <stuart02@gmail.com> | 2012-05-09 15:19:40 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2012-05-09 15:19:40 +0000 |
commit | afbd3852fa962b3b4399b83ba33295c7621d04a8 (patch) | |
tree | 85644bdcb5091955483e67e88308e5c535bb6248 /Source/SPCSVExporter.m | |
parent | 9131db394c46f10260fcec1a1df5216b140e2bc2 (diff) | |
download | sequelpro-afbd3852fa962b3b4399b83ba33295c7621d04a8.tar.gz sequelpro-afbd3852fa962b3b4399b83ba33295c7621d04a8.tar.bz2 sequelpro-afbd3852fa962b3b4399b83ba33295c7621d04a8.zip |
Fix more gcc warnings.
Diffstat (limited to 'Source/SPCSVExporter.m')
-rw-r--r-- | Source/SPCSVExporter.m | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Source/SPCSVExporter.m b/Source/SPCSVExporter.m index 4bf6c651..93b80256 100644 --- a/Source/SPCSVExporter.m +++ b/Source/SPCSVExporter.m @@ -83,11 +83,12 @@ BOOL csvCellIsNumeric; BOOL quoteFieldSeparators = [[self csvEnclosingCharacterString] isEqualToString:@""]; - NSUInteger i, totalRows, lastProgressValue, csvCellCount = 0; + double lastProgressValue; + NSUInteger i, totalRows, csvCellCount = 0; // Check to see if we have at least a table name or data array - if ((![self csvTableName]) && (![self csvDataArray]) || - ([[self csvTableName] isEqualToString:@""]) && ([[self csvDataArray] count] == 0)) + if ((![self csvTableName] && ![self csvDataArray]) || + ([[self csvTableName] isEqualToString:@""] && [[self csvDataArray] count] == 0)) { [pool release]; return; @@ -371,7 +372,7 @@ // Update the progress if (totalRows && (currentRowIndex * ([self exportMaxProgress] / totalRows)) > lastProgressValue) { - NSInteger progress = (currentRowIndex * ([self exportMaxProgress] / totalRows)); + double progress = (currentRowIndex * ([self exportMaxProgress] / totalRows)); [self setExportProgressValue:progress]; |