Correct wrong ifdef causing missing mprotect call if NDEBUG is not defined - lightning.git - Portable just-in-time compiler library

index : lightning.git
Portable just-in-time compiler library
summary refs log tree commit diff
diff options
context:
space:
mode:
authorpcpa <paulo.cesar.pereira.de.andrade@gmail.com>2024年09月03日 11:18:58 -0300
committerpcpa <paulo.cesar.pereira.de.andrade@gmail.com>2024年09月03日 11:18:58 -0300
commitbfd695a94668861a9447b29d2666f8b9c5dcd5bf (patch)
tree90ccd8b74700e9e6e1df66f2f7ef7541d2311f59
parent778d326740f9893c398f959b419629935b613099 (diff)
downloadlightning-bfd695a94668861a9447b29d2666f8b9c5dcd5bf.tar.gz
Correct wrong ifdef causing missing mprotect call if NDEBUG is not defined
This should fix OSX failure. It also has not been detected earlier due to having assertions enabled in all test builds, to detect encoding errors.
Diffstat
-rw-r--r--lib/lightning.c 2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/lightning.c b/lib/lightning.c
index ce0e295..83917ae 100644
--- a/lib/lightning.c
+++ b/lib/lightning.c
@@ -2620,8 +2620,8 @@ _jit_emit(jit_state_t *_jit)
# endif
# ifndef NDEBUG
result =
- mprotect(_jit->code.ptr, _jit->code.protect, PROT_READ | PROT_EXEC);
# endif
+ mprotect(_jit->code.ptr, _jit->code.protect, PROT_READ | PROT_EXEC);
assert(result == 0);
}
#endif /* HAVE_MMAP */
generated by cgit v1.2.3 (git 2.39.1) at 2025年09月09日 10:50:15 +0000

AltStyle によって変換されたページ (->オリジナル) /