From: Lennart Poettering Date: Tue, 21 Oct 2008 16:27:25 +0000 (+0200) Subject: convert argument to boolean int in PA_UNLIKELY, too X-Git-Tag: v0.9.15-test1~317 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7fecb2340e0ffa3f7ec2c9542cbcdefa70786120;p=platform%2Fupstream%2Fpulseaudio.git convert argument to boolean int in PA_UNLIKELY, too --- diff --git a/src/pulsecore/macro.h b/src/pulsecore/macro.h index 39e9b58..2d031da 100644 --- a/src/pulsecore/macro.h +++ b/src/pulsecore/macro.h @@ -40,7 +40,7 @@ #ifndef PA_LIKELY #ifdef __GNUC__ #define PA_LIKELY(x) (__builtin_expect(!!(x),1)) -#define PA_UNLIKELY(x) (__builtin_expect((x),0)) +#define PA_UNLIKELY(x) (__builtin_expect(!!(x),0)) #else #define PA_LIKELY(x) (x) #define PA_UNLIKELY(x) (x)