From 8d3c742eb1de0f670d093781ef5890c746aaeeb8 Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Wed, 21 May 2008 19:27:22 +0000 Subject: [PATCH] fix infinite loop when quicklooking a collapsed group --- macosx/Controller.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/macosx/Controller.m b/macosx/Controller.m index 054826c8b..1b5f98af0 100644 --- a/macosx/Controller.m +++ b/macosx/Controller.m @@ -4085,7 +4085,7 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy //do in reverse to find torrent before group int row; - for (row = NSMaxRange(visibleRows) - 1; row >= visibleRows.location; row--) + for (row = NSMaxRange(visibleRows) - 1; row >= (int)visibleRows.location; row--) { id item = [fTableView itemAtRow: row]; if ([item isKindOfClass: [Torrent class]] && [[(Torrent *)item dataLocation] isEqualToString: fullPath])