From 920811c894b9b180d17add74e1553645c4a39aed Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Wed, 23 Jan 2008 18:53:19 +0000 Subject: [PATCH] eliminate a warning --- macosx/PrefsController.m | 2 +- macosx/TorrentTableView.m | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/macosx/PrefsController.m b/macosx/PrefsController.m index 225bc531c..a1c96045e 100644 --- a/macosx/PrefsController.m +++ b/macosx/PrefsController.m @@ -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; diff --git a/macosx/TorrentTableView.m b/macosx/TorrentTableView.m index 943c559b5..8e78d66ee 100644 --- a/macosx/TorrentTableView.m +++ b/macosx/TorrentTableView.m @@ -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; }