summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2008-10-21 18:27:25 +0200
committerLennart Poettering <lennart@poettering.net>2008-10-21 18:27:25 +0200
commit7fecb2340e0ffa3f7ec2c9542cbcdefa70786120 (patch)
treeb378aa683f5682bafb5a10900734f48b9b541cbe /src
parent519bb556cd2ca47e62247a87d5d76cde1ca2c18b (diff)
convert argument to boolean int in PA_UNLIKELY, too
Diffstat (limited to 'src')
-rw-r--r--src/pulsecore/macro.h2
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)