diff --git a/win32/win32.c b/win32/win32.c index c9bd18c8cd..d9e719af00 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -8264,7 +8264,7 @@ rb_w32_mprotect(void *addr, size_t len, int prot) return -1; } */ - if (prot | PROT_EXEC) { + if (prot & PROT_EXEC) { if (!FlushInstructionCache(GetCurrentProcess(), addr, len)) { errno = rb_w32_map_errno(GetLastError()); return -1;