summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2008-10-21 18:27:25 +0200
committerLennart Poettering <lennart@poettering.net>2008-10-23 23:03:08 +0200
commitab1139ffd3b33e55cd0a480e6e6ed86f5f1b53f1 (patch)
tree26a3254a8ae81e2a9683c1e244d1ae6546003d65
parent74898ff657ff85a3a3ce481d74d75438d79fde25 (diff)
convert argument to boolean int in PA_UNLIKELY, too
-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)