mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-01 22:58:47 -04:00
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
This commit is contained in:
parent
2cb1b2c067
commit
9d00b9dea2
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue