eliminate a warning

This commit is contained in:
Mitchell Livingston 2008-01-23 18:53:19 +00:00
parent 230d490637
commit 920811c894
2 changed files with 2 additions and 2 deletions

View File

@ -247,7 +247,7 @@
- (void) updatePortStatus
{
tr_handle_status * stat = tr_handleStatus(fHandle);
const tr_handle_status * stat = tr_handleStatus(fHandle);
if (fNatStatus != stat->natTraversalStatus || fPublicPort != stat->publicPort)
{
fNatStatus = stat->natTraversalStatus;

View File

@ -317,7 +317,7 @@
else
{
unsigned nextGroup = [fGroupIndexes indexGreaterThanIndex: i],
count = nextGroup != NSNotFound ? nextGroup - i - 1 : [fTorrents count] - i - 1;
count = (nextGroup != NSNotFound ? nextGroup : [fTorrents count]) - i - 1 ;
[indexSet addIndexesInRange: NSMakeRange(i+1, count)];
i = nextGroup-1;
}