mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-26 08:58:22 -04:00
[partition] Reduce warnings about integer size
This commit is contained in:
parent
10ba468748
commit
bffaf47900
2 changed files with 3 additions and 3 deletions
|
@ -44,7 +44,7 @@ ResizeVolumeGroupDialog::ResizeVolumeGroupDialog( LvmDevice *device,
|
|||
for ( const Partition* p : availablePVs )
|
||||
pvList()->addItem( new ListPhysicalVolumeWidgetItem( p, false ) );
|
||||
|
||||
peSize()->setValue( device->peSize() / Capacity::unitFactor(Capacity::Unit::Byte, Capacity::Unit::MiB) );
|
||||
peSize()->setValue( static_cast<int>( device->peSize() / Capacity::unitFactor(Capacity::Unit::Byte, Capacity::Unit::MiB) ) );
|
||||
|
||||
vgName()->setEnabled( false );
|
||||
peSize()->setEnabled( false );
|
||||
|
|
|
@ -137,9 +137,9 @@ VolumeGroupBaseDialog::updateTotalSize()
|
|||
void
|
||||
VolumeGroupBaseDialog::updateTotalSectors()
|
||||
{
|
||||
qint32 totalSectors = 0;
|
||||
qint64 totalSectors = 0;
|
||||
|
||||
qint32 extentSize = ui->peSize->value() * Capacity::unitFactor(Capacity::Unit::Byte, Capacity::Unit::MiB);
|
||||
qint64 extentSize = ui->peSize->value() * Capacity::unitFactor(Capacity::Unit::Byte, Capacity::Unit::MiB);
|
||||
|
||||
if ( extentSize > 0 )
|
||||
totalSectors = m_totalSizeValue / extentSize;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue