]> code.delx.au - pulseaudio/commitdiff
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 39e9b587830e346c438f097539c7c072e20afb99..2d031dadc4878a18b0b7ed875df593fc90aefaa7 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)