diff options
| author | Scott Mansell <phiren@gmail.com> | 2026-07-31 13:49:48 +1200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-07-31 13:49:48 +1200 |
| commit | 3bd410c4c5bf9f66b013d63f4421364e95bd9722 (patch) | |
| tree | 5290c9f624c4c460a4148925c007087152b50e20 /Source/Core/Common/MemArenaUnix.cpp | |
| parent | e463c64b7ad37fbb33c0242052d5f4245815ec6e (diff) | |
| parent | 61e97c9a099ed00261e299ddc43bc22c1479e220 (diff) | |
Merge pull request #14775 from tygyh/Replace-zero-constants-with-`nullptr`
Replace zero constants with `nullptr`
Diffstat (limited to 'Source/Core/Common/MemArenaUnix.cpp')
| -rw-r--r-- | Source/Core/Common/MemArenaUnix.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/Common/MemArenaUnix.cpp b/Source/Core/Common/MemArenaUnix.cpp index fd4af4e74b..26a123c081 100644 --- a/Source/Core/Common/MemArenaUnix.cpp +++ b/Source/Core/Common/MemArenaUnix.cpp @@ -149,8 +149,8 @@ void* LazyMemoryRegion::Create(size_t size) if (size == 0) return nullptr; - void* memory = - mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS | MAP_NORESERVE, -1, 0); + void* memory = mmap(nullptr, size, PROT_READ | PROT_WRITE, + MAP_PRIVATE | MAP_ANONYMOUS | MAP_NORESERVE, -1, 0); if (memory == MAP_FAILED) { NOTICE_LOG_FMT(MEMMAP, "Memory allocation of {} bytes failed.", size); |
