diff --git a/src/pulsecore/gccmacro.h b/src/pulsecore/gccmacro.h index f16466533..f94a8c45a 100644 --- a/src/pulsecore/gccmacro.h +++ b/src/pulsecore/gccmacro.h @@ -79,7 +79,7 @@ #ifndef PA_LIKELY #ifdef __GNUC__ -#define PA_LIKELY(x) (__builtin_expect((x),1)) +#define PA_LIKELY(x) (__builtin_expect(!!(x),1)) #define PA_UNLIKELY(x) (__builtin_expect((x),0)) #else #define PA_LIKELY(x) (x)