From 7e7f1d0414c9128ce2e09659711f45e6b0f74c39 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 2 May 2023 12:06:00 -0600 Subject: [PATCH] Drop a pair of parantheses from likely/unlikely Such that "if likely(...)" wouldn't compile. --- src/hb.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hb.hh b/src/hb.hh index c6b3cc021..205f8cf19 100644 --- a/src/hb.hh +++ b/src/hb.hh @@ -255,8 +255,8 @@ extern "C" void hb_free_impl(void *ptr); #endif #if defined(__OPTIMIZE__) && hb_has_builtin(__builtin_expect) -#define likely(expr) (__builtin_expect (bool(expr), 1)) -#define unlikely(expr) (__builtin_expect (bool(expr), 0)) +#define likely(expr) __builtin_expect (bool(expr), 1) +#define unlikely(expr) __builtin_expect (bool(expr), 0) #else #define likely(expr) (expr) #define unlikely(expr) (expr)