Fix bug in ulaw2lin for 4-byte values

This commit is contained in:
Guido van Rossum 1992-06-05 15:11:56 +00:00
parent 0e69587dc0
commit aad5344fc1
1 changed files with 1 additions and 1 deletions

View File

@ -541,7 +541,7 @@ audioop_ulaw2lin(self, args)
if ( size == 1 ) *CHARP(ncp, i) = (signed char)(val >> 8);
else if ( size == 2 ) *SHORTP(ncp, i) = (short)(val);
else if ( size == 4 ) *LONGP(ncp, i) = (long)(val>>16);
else if ( size == 4 ) *LONGP(ncp, i) = (long)(val<<16);
}
return rv;
}