From 3e0f2bfc4ae48228e1451d145cd4ac04cbf18be7 Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Sun, 31 Dec 2023 15:54:45 +0100 Subject: Fixed some (nasty sometimes) warning --- src/custommem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/custommem.c') 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; } -- cgit 1.4.1