--- np2/sound/cs4231c.c 2004/03/29 14:19:25 1.8 +++ np2/sound/cs4231c.c 2005/02/07 14:46:12 1.9 @@ -174,8 +174,8 @@ void cs4231_control(UINT index, REG8 dat UINT8 modify; DMACH dmach; - modify = ((BYTE *)&cs4231.reg)[index] ^ dat; - ((BYTE *)&cs4231.reg)[index] = dat; + modify = ((UINT8 *)&cs4231.reg)[index] ^ dat; + ((UINT8 *)&cs4231.reg)[index] = dat; switch(index) { case CS4231REG_PLAYFMT: if (modify & 0xf0) {