diff options
author | rowanbeentje <rowan@beent.je> | 2012-01-09 23:45:35 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2012-01-09 23:45:35 +0000 |
commit | 769ea7847b21c4eafcb32b18045b8c6a13e08c0a (patch) | |
tree | 7690663cc5283506798f517058aadd907df193db /Source/SPCustomQuery.m | |
parent | 844435db969701bb914094c523e93d775e597df1 (diff) | |
download | sequelpro-769ea7847b21c4eafcb32b18045b8c6a13e08c0a.tar.gz sequelpro-769ea7847b21c4eafcb32b18045b8c6a13e08c0a.tar.bz2 sequelpro-769ea7847b21c4eafcb32b18045b8c6a13e08c0a.zip |
- 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
Diffstat (limited to 'Source/SPCustomQuery.m')
-rw-r--r-- | Source/SPCustomQuery.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/SPCustomQuery.m b/Source/SPCustomQuery.m index 6aeca55a..3cadaba5 100644 --- a/Source/SPCustomQuery.m +++ b/Source/SPCustomQuery.m @@ -2103,7 +2103,7 @@ } } else { isDesc = NO; - [[customQueryView onMainThread] setIndicatorImage:nil inTableColumn:[customQueryView tableColumnWithIdentifier:[NSString stringWithFormat:@"%lld", [sortField integerValue]]]]; + [[customQueryView onMainThread] setIndicatorImage:nil inTableColumn:[customQueryView tableColumnWithIdentifier:[NSString stringWithFormat:@"%lld", (long long)[sortField integerValue]]]]; if (sortField) [sortField release]; sortField = [[NSNumber alloc] initWithInteger:[[tableColumn identifier] integerValue]]; } |