diff options
author | bunnei <bunneidev@gmail.com> | 2018-01-20 19:12:21 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-20 19:12:21 -0500 |
commit | 557b2496d7a83b26ad6737543a7da91826650fca (patch) | |
tree | 28c5d2fa3cba08f1f49f5c10fa16bfb94144d01c /src/common/memory_util.cpp | |
parent | 6cccbf0eb365c9918e09a4965d46e9252c8ec6c4 (diff) | |
parent | 96f446ff653e0af38edb8c3e6d342c045e5bb8b1 (diff) |
Merge pull request #117 from jroweboy/clang-format
Clang format as a build target
Diffstat (limited to 'src/common/memory_util.cpp')
-rw-r--r-- | src/common/memory_util.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/common/memory_util.cpp b/src/common/memory_util.cpp index c19729b21..759ad02ca 100644 --- a/src/common/memory_util.cpp +++ b/src/common/memory_util.cpp @@ -40,11 +40,12 @@ void* AllocateExecutableMemory(size_t size, bool low) { if (low && (!map_hint)) map_hint = (char*)round_page(512 * 1024 * 1024); /* 0.5 GB rounded up to the next page */ #endif - void* ptr = mmap(map_hint, size, PROT_READ | PROT_WRITE | PROT_EXEC, MAP_ANON | MAP_PRIVATE + void* ptr = mmap(map_hint, size, PROT_READ | PROT_WRITE | PROT_EXEC, + MAP_ANON | MAP_PRIVATE #if defined(ARCHITECTURE_X64) && defined(MAP_32BIT) - | (low ? MAP_32BIT : 0) + | (low ? MAP_32BIT : 0) #endif - , + , -1, 0); #endif /* defined(_WIN32) */ |