Merge pull request #10632 from Tilka/ax_ub

AX: prevent undefined behavior
This commit is contained in:
Mai M 2022-05-03 20:13:07 -04:00 committed by GitHub
commit d0ed09ab6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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