eliminate a warning
This commit is contained in:
parent
230d490637
commit
920811c894
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue