From 1b0b2222c6f99875daea4ce4dd88999836783fde Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Sat, 4 Aug 2007 01:14:26 +0000 Subject: [PATCH] safety --- macosx/Torrent.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/macosx/Torrent.m b/macosx/Torrent.m index 481a47108..18ef873c8 100644 --- a/macosx/Torrent.m +++ b/macosx/Torrent.m @@ -1405,7 +1405,7 @@ static uint32_t kRed = BE(0xFF6450FF), //255, 100, 80 NSDate * started = [NSDate dateWithTimeIntervalSince1970: start / 1000], * activity = [self dateActivity]; - NSDate * laterDate = !activity || [started compare: activity] == NSOrderedDescending ? started : activity; + NSDate * laterDate = (!activity || [started compare: activity] == NSOrderedDescending) ? started : activity; return -1 * [laterDate timeIntervalSinceNow] / 60; }