convert argument to boolean int in PA_UNLIKELY, too
authorLennart Poettering <lennart@poettering.net>
Tue, 21 Oct 2008 16:27:25 +0000 (18:27 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 21 Oct 2008 16:27:25 +0000 (18:27 +0200)
src/pulsecore/macro.h

index 39e9b58..2d031da 100644 (file)
@@ -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)