diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2023-12-31 15:54:45 +0100 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2023-12-31 15:54:45 +0100 |
| commit | 3e0f2bfc4ae48228e1451d145cd4ac04cbf18be7 (patch) | |
| tree | 8a5362196a309285aadb21dc8b01509acc44795a /src/custommem.c | |
| parent | 5e9e1faedc97194e46f3fb4b3665ec416ce7efbf (diff) | |
| download | box64-3e0f2bfc4ae48228e1451d145cd4ac04cbf18be7.tar.gz box64-3e0f2bfc4ae48228e1451d145cd4ac04cbf18be7.zip | |
Fixed some (nasty sometimes) warning
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; } |