diff --git a/src/core/address_space.cpp b/src/core/address_space.cpp index eae3b146b..2d44e62df 100644 --- a/src/core/address_space.cpp +++ b/src/core/address_space.cpp @@ -717,7 +717,7 @@ struct AddressSpace::Impl { int fd = -1) { m_free_regions.subtract({virtual_addr, virtual_addr + size}); #ifdef __APPLE__ - if (prot & PROT_EXEC != 0) { + if ((prot & PROT_EXEC) != 0) { ASSERT_MSG(fd == -1, "Requested execute permissions for file mapping"); phys_addr = -1; }