mirror of
https://github.com/python/cpython.git
synced 2025-10-18 12:48:57 +00:00
Fix bug in ulaw2lin for 4-byte values
This commit is contained in:
parent
0e69587dc0
commit
aad5344fc1
1 changed files with 1 additions and 1 deletions
|
@ -541,7 +541,7 @@ audioop_ulaw2lin(self, args)
|
||||||
|
|
||||||
if ( size == 1 ) *CHARP(ncp, i) = (signed char)(val >> 8);
|
if ( size == 1 ) *CHARP(ncp, i) = (signed char)(val >> 8);
|
||||||
else if ( size == 2 ) *SHORTP(ncp, i) = (short)(val);
|
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;
|
return rv;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue