Wstringop-overflow
This commit is contained in:
parent
e118da5d40
commit
2020aba481
6
extern/emu2413/emu2413.c
vendored
6
extern/emu2413/emu2413.c
vendored
|
@ -1233,7 +1233,11 @@ void OPLL_writeReg(OPLL *opll, uint32_t reg, uint8_t data) {
|
||||||
reg -= 9;
|
reg -= 9;
|
||||||
}
|
}
|
||||||
|
|
||||||
opll->reg[reg] = (uint8_t)data;
|
// is the compiler stupid or what?
|
||||||
|
// -Wstringop-overflow seems to be the buggiest thing known to humanity...
|
||||||
|
if (reg<0x40) {
|
||||||
|
opll->reg[reg] = (uint8_t)data;
|
||||||
|
}
|
||||||
|
|
||||||
switch (reg) {
|
switch (reg) {
|
||||||
case 0x00:
|
case 0x00:
|
||||||
|
|
2
extern/emu2413/emu2413.h
vendored
2
extern/emu2413/emu2413.h
vendored
|
@ -96,7 +96,7 @@ typedef struct __OPLL {
|
||||||
double out_step;
|
double out_step;
|
||||||
double out_time;
|
double out_time;
|
||||||
|
|
||||||
uint8_t reg[0x40];
|
uint8_t reg[64];
|
||||||
uint8_t test_flag;
|
uint8_t test_flag;
|
||||||
uint32_t slot_key_status;
|
uint32_t slot_key_status;
|
||||||
uint8_t rhythm_mode;
|
uint8_t rhythm_mode;
|
||||||
|
|
Loading…
Reference in a new issue