summaryrefslogtreecommitdiffstats
path: root/src/pulsecore
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2007-12-29 18:04:31 +0000
committerLennart Poettering <lennart@poettering.net>2007-12-29 18:04:31 +0000
commit9d00b9dea2b236c3bc6cbf8f9b5ff87fe6aa67b3 (patch)
tree4793769934e5da2cb5939176c9ae651d2e467a3c /src/pulsecore
parent2cb1b2c06766745d58412e238497f9cd1af0d312 (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
Diffstat (limited to 'src/pulsecore')
-rw-r--r--src/pulsecore/gccmacro.h2
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)