diff options
author | Guido van Rossum <guido@python.org> | 1992-06-05 15:11:56 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1992-06-05 15:11:56 (GMT) |
commit | aad5344fc13d21a998b9a519164bdab68ecacd3b (patch) | |
tree | f47955447643a9006090a3cb875acd392f52e4cd /Modules/audioop.c | |
parent | 0e69587dc0a3c61275770129872d05c0ea47a767 (diff) | |
download | cpython-aad5344fc13d21a998b9a519164bdab68ecacd3b.zip cpython-aad5344fc13d21a998b9a519164bdab68ecacd3b.tar.gz cpython-aad5344fc13d21a998b9a519164bdab68ecacd3b.tar.bz2 |
Fix bug in ulaw2lin for 4-byte values
Diffstat (limited to 'Modules/audioop.c')
-rw-r--r-- | Modules/audioop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/audioop.c b/Modules/audioop.c index 9a06786..1dd2da0 100644 --- a/Modules/audioop.c +++ b/Modules/audioop.c @@ -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; } |