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:
parent
0a08540b7f
commit
de66540961
1 changed files with 1 additions and 1 deletions
|
@ -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.",
|
||||
|
|
Loading…
Reference in a new issue