Skip to content

Commit

Permalink
Merge pull request #247 from SChernykh/fix_warning
Browse files Browse the repository at this point in the history
Fixed compiler warning
  • Loading branch information
SChernykh committed Jun 20, 2022
2 parents 09aa65c + 00472c5 commit cced5ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/virtual_memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,8 @@ void* allocLargePagesMemory(size_t bytes) {
#if defined(_WIN32) || defined(__CYGWIN__)
if (setPrivilege("SeLockMemoryPrivilege", 1, &errfunc))
return NULL;
auto pageMinimum = GetLargePageMinimum();
if (pageMinimum <= 0) {
size_t pageMinimum = GetLargePageMinimum();
if (!pageMinimum) {
errfunc = "No large pages";
return NULL;
}
Expand Down

0 comments on commit cced5ca

Please sign in to comment.