convert argument to boolean int in PA_UNLIKELY, too

This commit is contained in:
Lennart Poettering 2008-10-21 18:27:25 +02:00
parent 519bb556cd
commit 7fecb2340e

View 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)