Fix false positive truncLongCastAssignment warnings

This commit is contained in:
Konstantinos Margaritis 2024-05-12 17:22:12 +03:00
parent cd1e13d4d2
commit c54acf0e04

View File

@ -183,7 +183,7 @@ long gethugepagesize(void) {
hpage_size = -1;
} else {
/* convert from kb to bytes */
hpage_size = 1024 * hpage_kb;
hpage_size = 1024L * hpage_kb;
}
return hpage_size;