[partition] Use signed sizes
Unfortunate effect of having ints in some parts of the API is that signedness trickles down everywhere; either cast all over, or stick to signed ints.
This commit is contained in:
parent
95240da872
commit
0fff01e36e
@ -44,7 +44,7 @@ struct ReplacePartitionOptions
|
||||
struct AutoPartitionOptions : ReplacePartitionOptions
|
||||
{
|
||||
QString efiPartitionMountPoint; // optional, e.g. "/boot"
|
||||
quint64 requiredSpaceB; // estimated required space for root partition
|
||||
qint64 requiredSpaceB; // estimated required space for root partition
|
||||
Config::SwapChoice swap;
|
||||
|
||||
AutoPartitionOptions( const QString& pt,
|
||||
@ -55,7 +55,7 @@ struct AutoPartitionOptions : ReplacePartitionOptions
|
||||
Config::SwapChoice s )
|
||||
: ReplacePartitionOptions( pt, fs, luks )
|
||||
, efiPartitionMountPoint( efi )
|
||||
, requiredSpaceB( requiredBytes > 0 ? static_cast< quint64 >( requiredBytes ) : 0 )
|
||||
, requiredSpaceB( requiredBytes > 0 ? requiredBytes : 0 )
|
||||
, swap( s )
|
||||
{
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user