forked from len0rd/rockbox
[BugFix] Enums are only 2 bytes on some Devices
using enums to hold values larger than 0xFFFF could be problematic WIP Change-Id: I3a9be957265364b545f022fe26163f0869569e3e
This commit is contained in:
parent
9e2c85e076
commit
4ec34f6986
18 changed files with 168 additions and 165 deletions
|
@ -278,7 +278,7 @@ struct cache_entry_t
|
|||
uint8_t block_header; /* final wave block header */
|
||||
};
|
||||
|
||||
enum { BRR_CACHE_SIZE = 0x20000 + 32};
|
||||
#define BRR_CACHE_SIZE (0x20000 + 32)
|
||||
|
||||
struct voice_wave_t
|
||||
{
|
||||
|
@ -424,7 +424,7 @@ struct Spc_Emu
|
|||
uint8_t boot_rom [ROM_SIZE];
|
||||
};
|
||||
|
||||
enum { SPC_FILE_SIZE = 0x10180 };
|
||||
#define SPC_FILE_SIZE (0x10180)
|
||||
|
||||
struct spc_file_t
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue