1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-02-10 00:14:52 +00:00

don't subtract unsigned numbers

This commit is contained in:
Mitchell Livingston 2006-09-28 16:50:26 +00:00
parent 0a08540b7f
commit de66540961

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