diff options
Diffstat (limited to 'src/custommem.c')
| -rw-r--r-- | src/custommem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/custommem.c b/src/custommem.c index ef207d30..859a230b 100644 --- a/src/custommem.c +++ b/src/custommem.c @@ -1208,7 +1208,7 @@ void updateProtection(uintptr_t addr, size_t size, uint8_t prot) dyn = PROT_DYNAREC_R; } } - if (prot|dyn != prot) + if ((prot|dyn) != prot) rb_set(memprot, cur, bend, prot|dyn); cur = bend; } |