Merge pull request #272 from VectorCamp/bugfix/cppcheck-truncLongCastAssignment

Fix marked as false positive truncLongCastAssignment cppcheck warnings
This commit is contained in:
Konstantinos Margaritis 2024-05-13 10:13:45 +03:00 committed by GitHub
commit cbd831e92a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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