Fix toncset (byte version) not working correctly (#207)

See DS-Homebrew/TWiLightMenu#2121
This commit is contained in:
Pk11 2022-12-14 15:07:13 -06:00 committed by GitHub
parent de85813d4c
commit 5a73c67774
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,7 +12,7 @@ extern "C" {
typedef unsigned int uint; typedef unsigned int uint;
#define BIT_MASK(len) ( (1<<(len))-1 ) #define BIT_MASK(len) ( (1<<(len))-1 )
static inline u32 quad8(u8 x) { x |= x<<8; return x | x<<16; } static inline u32 quad8(u16 x) { x |= x<<8; return x | x<<16; }
//# Declarations and inlines. //# Declarations and inlines.