[partition] Warnings--: we don't care about one-byte-in-10^12

This commit is contained in:
Adriaan de Groot 2021-12-07 15:31:49 +01:00
parent bb3f4442f5
commit 09a03fbbc0

View File

@ -212,7 +212,8 @@ ReplaceWidget::onPartitionSelected()
}
}
if ( partition->capacity() < requiredSpaceB )
// The loss of precision is ok; we're not going to fall over from a single byte
if ( static_cast< double >( partition->capacity() ) < requiredSpaceB )
{
updateStatus( CalamaresUtils::Fail,
tr( "<strong>%4</strong><br/><br/>"