Fixed compiler warning

This commit is contained in:
Dimitris Panokostas 2020-06-28 18:44:34 +02:00
parent 43007b525e
commit a75d6dae6f

View file

@ -64,7 +64,7 @@ bool can_have_1gb()
long long total_phys_mem = mem_info.totalram;
total_phys_mem *= mem_info.mem_unit;
// Do we have more than 2GB in the system?
if (total_phys_mem > 2048 * 1024 * 1024)
if (total_phys_mem > 2147483648LL)
return true;
return false;
}