AX: prevent undefined behavior
u16 gets promoted to s32 where changing the uppermost bit is UB.
This commit is contained in:
parent
ded18ab61e
commit
aee547aa0e
|
@ -44,7 +44,7 @@ inline namespace AXWii
|
||||||
namespace
|
namespace
|
||||||
{
|
{
|
||||||
// Useful macro to convert xxx_hi + xxx_lo to xxx for 32 bits.
|
// Useful macro to convert xxx_hi + xxx_lo to xxx for 32 bits.
|
||||||
#define HILO_TO_32(name) ((name##_hi << 16) | name##_lo)
|
#define HILO_TO_32(name) ((u32(name##_hi) << 16) | name##_lo)
|
||||||
|
|
||||||
// Used to pass a large amount of buffers to the mixing function.
|
// Used to pass a large amount of buffers to the mixing function.
|
||||||
union AXBuffers
|
union AXBuffers
|
||||||
|
|
Loading…
Reference in New Issue