fix: warning with different signedness
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
parent
178965676e
commit
93e9d2fd86
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue