From aea10492232746e5181a8ee7bc09127cda3ef32b Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Wed, 7 Feb 2024 11:24:59 +0100 Subject: [PATCH] Fixed a warning --- src/libtools/signals.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libtools/signals.c b/src/libtools/signals.c index a8e8a83e6..dfec9f626 100644 --- a/src/libtools/signals.c +++ b/src/libtools/signals.c @@ -1452,7 +1452,7 @@ dynarec_log(/*LOG_DEBUG*/LOG_INFO, "Repeated SIGSEGV with Access error on %p for if((sig==SIGSEGV) && (info->si_code == SEGV_ACCERR) && ((prot&~PROT_CUSTOM)==(PROT_READ|PROT_WRITE) || (prot&~PROT_CUSTOM)==(PROT_READ|PROT_WRITE|PROT_EXEC))) { static uintptr_t old_addr = 0; #ifdef DYNAREC - if((prot==PROT_READ|PROT_WRITE|PROT_EXEC) && isDBFromAddressRange(((uintptr_t)addr)&~(box64_pagesize-1), box64_pagesize)) { + if((prot==(PROT_READ|PROT_WRITE|PROT_EXEC)) && isDBFromAddressRange(((uintptr_t)addr)&~(box64_pagesize-1), box64_pagesize)) { printf_log(/*LOG_DEBUG*/LOG_INFO, "%04d| Strange SIGSEGV with Access error on %p for %p with DynaBlock(s) in range, db=%p, Lock=0x%x)\n", tid, pc, addr, db, Locks); cleanDBFromAddressRange(((uintptr_t)addr)&~(box64_pagesize-1), box64_pagesize, 0); refreshProtection((uintptr_t)addr);