AX: prevent undefined behavior

u16 gets promoted to s32 where changing the uppermost bit is UB.
This commit is contained in:
Tillmann Karras 2022-05-03 22:01:33 +01:00
parent ded18ab61e
commit aee547aa0e

View File

@ -44,7 +44,7 @@ inline namespace AXWii
namespace
{
// 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.
union AXBuffers