From 769ea7847b21c4eafcb32b18045b8c6a13e08c0a Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Mon, 9 Jan 2012 23:45:35 +0000 Subject: - Expicitly cast parameters before passing into NSString formatters assuming 64-bit lengths; this addresses exceptions and hangs viewing table contents on 32-bit machines, many thanks to stuart02 for identifying and tracking down this issue --- Source/SPCopyTable.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/SPCopyTable.m') diff --git a/Source/SPCopyTable.m b/Source/SPCopyTable.m index bfd00c49..e8b1533d 100644 --- a/Source/SPCopyTable.m +++ b/Source/SPCopyTable.m @@ -711,7 +711,7 @@ static const NSInteger kBlobAsImageFile = 4; if ([[NSThread currentThread] isCancelled]) return nil; columnWidth = [self autodetectWidthForColumnDefinition:columnDefinition maxRows:100]; - [columnWidths setObject:[NSString stringWithFormat:@"%llu", columnWidth] forKey:[columnDefinition objectForKey:@"datacolumnindex"]]; + [columnWidths setObject:[NSString stringWithFormat:@"%llu", (unsigned long long)columnWidth] forKey:[columnDefinition objectForKey:@"datacolumnindex"]]; allColumnWidths += columnWidth; } -- cgit v1.2.3