fix: warning with different signedness (#3826)

This commit is contained in:
Tayou 2025-06-02 17:28:13 +02:00 committed by GitHub
commit df90d0cb0d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -426,7 +426,7 @@ bool FlameCreationTask::createInstance()
const uint64_t sysMiB = Sys::getSystemRam() / Sys::mebibyte; const uint64_t sysMiB = Sys::getSystemRam() / Sys::mebibyte;
const uint64_t max = sysMiB * 0.9; const uint64_t max = sysMiB * 0.9;
if (recommendedRAM > max) { if (static_cast<uint64_t>(recommendedRAM) > max) {
logWarning(tr("The recommended memory of the modpack exceeds 90% of your system RAM—reducing it from %1 MiB to %2 MiB!") logWarning(tr("The recommended memory of the modpack exceeds 90% of your system RAM—reducing it from %1 MiB to %2 MiB!")
.arg(recommendedRAM) .arg(recommendedRAM)
.arg(max)); .arg(max));