cleans up a unary minus unsigned still unsigned warning

also fixes channel 3 in Mario and luigi super star saga.  DON'T ASK ME HOW, i have no idea.  Infact changing other area's affected the channels as well, so i have no idea how the fuck this works.

git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@1094 a31d4220-a93d-0410-bf67-fe4944624d44
This commit is contained in:
squall-leonhart 2012-05-12 06:13:10 +00:00
parent f595b6fb5e
commit 75667980a7
1 changed files with 2 additions and 2 deletions

View File

@ -116,7 +116,7 @@ int Gb_Wave::access( unsigned addr ) const
if ( enabled )
{
addr = phase & (bank_size - 1);
if ( mode == Gb_Apu::mode_dmg )
if ( mode == Gb_Apu::mode_agb )
{
addr++;
if ( delay > clk_mul )
@ -442,7 +442,7 @@ static unsigned run_lfsr( unsigned s, unsigned mask, int count )
{
// won't fully replace upper 8 bits, so have to do the unoptimized way
while ( --count >= 0 )
s = (s >> 1 | mask) ^ (mask & -((s - 1) & 2));
s = (s >> 1 | mask) ^ (mask & (0 - ((s - 1) & 2)));
}
else
{