diff options
author | Lennart Poettering <lennart@poettering.net> | 2008-10-21 18:27:25 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2008-10-21 18:27:25 +0200 |
commit | 7fecb2340e0ffa3f7ec2c9542cbcdefa70786120 (patch) | |
tree | b378aa683f5682bafb5a10900734f48b9b541cbe | |
parent | 519bb556cd2ca47e62247a87d5d76cde1ca2c18b (diff) |
convert argument to boolean int in PA_UNLIKELY, too
-rw-r--r-- | src/pulsecore/macro.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pulsecore/macro.h b/src/pulsecore/macro.h index 39e9b587..2d031dad 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) |