]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix bug in ulaw2lin for 4-byte values
authorGuido van Rossum <guido@python.org>
Fri, 5 Jun 1992 15:11:56 +0000 (15:11 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 5 Jun 1992 15:11:56 +0000 (15:11 +0000)
Modules/audioop.c

index 9a06786933150670b3d2e602c31b25559d2170aa..1dd2da0044c3046ce2849910b74ede2d4fcf191d 100644 (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;
 }