Skip to content

Commit

Permalink
Fix warning on gcc6/7
Browse files Browse the repository at this point in the history
  • Loading branch information
foonathan committed Aug 21, 2021
1 parent 2a5af93 commit ed2f83a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/virtual_memory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ void* foonathan::memory::virtual_memory_commit(void* memory, std::size_t no_page
{
auto size = no_pages * virtual_memory_page_size;
auto result = mprotect(memory, size, PROT_WRITE | PROT_READ);
if (result != 0u)
if (result != 0)
return nullptr;

// advise that the memory will be needed
Expand Down

0 comments on commit ed2f83a

Please sign in to comment.