diff options
| author | Lennart Poettering <lennart@poettering.net> | 2007-12-29 18:04:31 +0000 | 
|---|---|---|
| committer | Lennart Poettering <lennart@poettering.net> | 2007-12-29 18:04:31 +0000 | 
| commit | 9d00b9dea2b236c3bc6cbf8f9b5ff87fe6aa67b3 (patch) | |
| tree | 4793769934e5da2cb5939176c9ae651d2e467a3c | |
| parent | 2cb1b2c06766745d58412e238497f9cd1af0d312 (diff) | |
convert argument to boolean value before passing it on to __builtin_expect in PA_LIKELY
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2090 fefdeb5f-60dc-0310-8127-8f9354f1896f
| -rw-r--r-- | src/pulsecore/gccmacro.h | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/src/pulsecore/gccmacro.h b/src/pulsecore/gccmacro.h index f1646653..f94a8c45 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) | 
