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
1 changed files with 1 additions and 1 deletions

View File

@ -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