mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
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
|
||||
{
|
||||
// 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
|
||||
|
Loading…
Reference in New Issue
Block a user