[welcome] Warnings--

This commit is contained in:
Adriaan de Groot 2020-06-23 13:16:56 +02:00
parent 22fdca8f44
commit daf9451e69

View File

@ -358,7 +358,7 @@ GeneralRequirements::checkEnoughRam( qint64 requiredRam )
// Ignore the guesstimate-factor; we get an under-estimate // Ignore the guesstimate-factor; we get an under-estimate
// which is probably the usable RAM for programs. // which is probably the usable RAM for programs.
quint64 availableRam = CalamaresUtils::System::instance()->getTotalMemoryB().first; quint64 availableRam = CalamaresUtils::System::instance()->getTotalMemoryB().first;
return availableRam >= requiredRam * 0.95; // because MemTotal is variable return double(availableRam) >= double(requiredRam) * 0.95; // cast to silence 64-bit-int conversion to double
} }