mirror of
https://github.com/transmission/transmission.git
synced 2025-12-25 04:45:56 +00:00
Addressed various warnings (#4414)
This commit is contained in:
@@ -70,11 +70,11 @@ enum
|
||||
{
|
||||
//determine relevant values
|
||||
_fNumPieces = MIN(_torrent.pieceCount, kMaxAcross * kMaxAcross);
|
||||
_fAcross = ceil(sqrt(_fNumPieces));
|
||||
_fAcross = static_cast<NSInteger>(ceil(sqrt(_fNumPieces)));
|
||||
|
||||
CGFloat const width = self.bounds.size.width;
|
||||
_fWidth = (width - (_fAcross + 1) * kBetweenPadding) / _fAcross;
|
||||
_fExtraBorder = (width - ((_fWidth + kBetweenPadding) * _fAcross + kBetweenPadding)) / 2;
|
||||
_fWidth = static_cast<NSInteger>((width - (_fAcross + 1) * kBetweenPadding) / _fAcross);
|
||||
_fExtraBorder = static_cast<NSInteger>((width - ((_fWidth + kBetweenPadding) * _fAcross + kBetweenPadding)) / 2);
|
||||
}
|
||||
|
||||
NSImage* back = [[NSImage alloc] initWithSize:self.bounds.size];
|
||||
|
||||
Reference in New Issue
Block a user