aboutsummaryrefslogtreecommitdiff
path: root/src/common_memory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/common_memory.cpp')
-rw-r--r--src/common_memory.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common_memory.cpp b/src/common_memory.cpp
index cda3cc002..ffdc9118a 100644
--- a/src/common_memory.cpp
+++ b/src/common_memory.cpp
@@ -184,7 +184,7 @@ void platform_virtual_memory_protect(void *memory, isize size);
}
void platform_virtual_memory_protect(void *memory, isize size) {
int err = mprotect(memory, size, PROT_NONE);
- GB_ASSERT(err != 0);
+ GB_ASSERT(err == 0);
}
#endif