diff --git a/src/modules/partition/gui/ReplaceWidget.cpp b/src/modules/partition/gui/ReplaceWidget.cpp
index 94f527646..2e5675a11 100644
--- a/src/modules/partition/gui/ReplaceWidget.cpp
+++ b/src/modules/partition/gui/ReplaceWidget.cpp
@@ -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( "%4
"