mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-08 13:29:59 -05:00
endianmacros: Fix PA_MAYBE_INT16_SWAP() macro
PA_MAYBE_INT16_SWAP() should call PA_INT16_SWAP(), not PA_INT32_SWAP PA_MAYBE_INT16_SWAP() is not used (yet), so no big deal :) Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
This commit is contained in:
parent
e14863334b
commit
a39a3b3f7d
1 changed files with 2 additions and 2 deletions
|
|
@ -82,8 +82,8 @@ static inline float PA_FLOAT32_SWAP(float x) {
|
||||||
return t.f;
|
return t.f;
|
||||||
}
|
}
|
||||||
|
|
||||||
#define PA_MAYBE_INT16_SWAP(c,x) ((c) ? PA_INT32_SWAP(x) : (x))
|
#define PA_MAYBE_INT16_SWAP(c,x) ((c) ? PA_INT16_SWAP(x) : (x))
|
||||||
#define PA_MAYBE_UINT16_SWAP(c,x) ((c) ? PA_UINT32_SWAP(x) : (x))
|
#define PA_MAYBE_UINT16_SWAP(c,x) ((c) ? PA_UINT16_SWAP(x) : (x))
|
||||||
|
|
||||||
#define PA_MAYBE_INT32_SWAP(c,x) ((c) ? PA_INT32_SWAP(x) : (x))
|
#define PA_MAYBE_INT32_SWAP(c,x) ((c) ? PA_INT32_SWAP(x) : (x))
|
||||||
#define PA_MAYBE_UINT32_SWAP(c,x) ((c) ? PA_UINT32_SWAP(x) : (x))
|
#define PA_MAYBE_UINT32_SWAP(c,x) ((c) ? PA_UINT32_SWAP(x) : (x))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue