aboutsummaryrefslogtreecommitdiffstats
path: root/src/internals.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/internals.h')
-rw-r--r--src/internals.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/internals.h b/src/internals.h
index c59b792..b055dbd 100644
--- a/src/internals.h
+++ b/src/internals.h
@@ -100,7 +100,7 @@ extern void *libzahl_temp_allocation;
#if defined(UNSAFE)
# define check(expr) 0
#else
-# define check(expr) (expr)
+# define check(expr) unlikely(expr)
#endif
#define SET_SIGNUM(a, signum) ZAHL_SET_SIGNUM(a, signum)
@@ -337,7 +337,7 @@ zinit_temp(z_t a)
size_t n = (size_t)(libzahl_temp_stack_end - libzahl_temp_stack);
void* old = libzahl_temp_stack;
libzahl_temp_stack = realloc(old, 2 * n * sizeof(*libzahl_temp_stack));
- if (check(unlikely(!libzahl_temp_stack))) {
+ if (check(!libzahl_temp_stack)) {
libzahl_temp_stack = old;
libzahl_memfailure();
}