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 authored and Kojin committed 2021-10-04 03:17:30 -04:00
1 parent e04c890018
commit 4df3bee178
1 file changed
+1 -1
+1 -1
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();