From de66540961430573a17bba253c5d8077ded60fa4 Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Thu, 28 Sep 2006 16:50:26 +0000 Subject: [PATCH] don't subtract unsigned numbers --- macosx/Torrent.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/macosx/Torrent.m b/macosx/Torrent.m index b4c7dce12..902f851c3 100644 --- a/macosx/Torrent.m +++ b/macosx/Torrent.m @@ -426,7 +426,7 @@ static uint32_t kRed = BE(0xFF6450FF), //255, 100, 80 NSLog(@"Remaining disk space: %qu", remainingSpace); NSLog(@"Torrent remaining size: %qu", torrentRemaining); - if (remainingSpace - torrentRemaining <= 10240.0) + if (remainingSpace <= torrentRemaining) { NSAlert * alert = [[NSAlert alloc] init]; [alert setMessageText: [NSString stringWithFormat: @"Not enough remaining disk space to download \"%@\" completely.",