summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1992-06-05 15:11:56 (GMT)
committerGuido van Rossum <guido@python.org>1992-06-05 15:11:56 (GMT)
commitaad5344fc13d21a998b9a519164bdab68ecacd3b (patch)
treef47955447643a9006090a3cb875acd392f52e4cd /Modules
parent0e69587dc0a3c61275770129872d05c0ea47a767 (diff)
downloadcpython-aad5344fc13d21a998b9a519164bdab68ecacd3b.zip
cpython-aad5344fc13d21a998b9a519164bdab68ecacd3b.tar.gz
cpython-aad5344fc13d21a998b9a519164bdab68ecacd3b.tar.bz2
Fix bug in ulaw2lin for 4-byte values
Diffstat (limited to 'Modules')
-rw-r--r--Modules/audioop.c2
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;
}