mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-23 13:05:11 +00:00
C219: fix out of bounds access
This commit is contained in:
parent
4e3de466ce
commit
bcf877b7ca
1 changed files with 2 additions and 2 deletions
|
@ -175,8 +175,8 @@ void c219_voice_tick(struct c219_t *c219, const unsigned char v, const int cycle
|
|||
signed short s2 = c219->sample_mem[((unsigned int)(c219->bank[(v >> 2) & 3]) << 17) | ((voice->addr + 1) & 0x1ffff)];
|
||||
if (voice->compressed)
|
||||
{
|
||||
s1 = c219->mulaw[s1];
|
||||
s2 = c219->mulaw[s2];
|
||||
s1 = c219->mulaw[s1&0xff];
|
||||
s2 = c219->mulaw[s2&0xff];
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue