don't subtract unsigned numbers

This commit is contained in:
Mitchell Livingston 2006-09-28 16:50:26 +00:00
parent 0a08540b7f
commit de66540961
1 changed files with 1 additions and 1 deletions

View File

@ -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.",