Merge pull request #247 from SChernykh/fix_warning

Fixed compiler warning
This commit is contained in:
SChernykh 2022-06-20 23:02:38 +02:00 committed by GitHub
commit cced5cab2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -206,8 +206,8 @@ void* allocLargePagesMemory(size_t bytes) {
#if defined(_WIN32) || defined(__CYGWIN__) #if defined(_WIN32) || defined(__CYGWIN__)
if (setPrivilege("SeLockMemoryPrivilege", 1, &errfunc)) if (setPrivilege("SeLockMemoryPrivilege", 1, &errfunc))
return NULL; return NULL;
auto pageMinimum = GetLargePageMinimum(); size_t pageMinimum = GetLargePageMinimum();
if (pageMinimum <= 0) { if (!pageMinimum) {
errfunc = "No large pages"; errfunc = "No large pages";
return NULL; return NULL;
} }