common: don't use NULL in SafeSysMunmap

BSD maps NULL to nullptr_t which is a problem because it's not a ptr type
This commit is contained in:
kojin 2021-10-03 16:17:42 -04:00 committed by Kojin
parent e04c890018
commit 4df3bee178
1 changed files with 1 additions and 1 deletions

View File

@ -211,7 +211,7 @@ namespace HostSys
// Safe version of Munmap -- NULLs the pointer variable immediately after free'ing it.
#define SafeSysMunmap(ptr, size) \
((void)(HostSys::Munmap((uptr)(ptr), size), (ptr) = NULL))
((void)(HostSys::Munmap((uptr)(ptr), size), (ptr) = 0))
extern void InitCPUTicks();
extern u64 GetTickFrequency();