Kaydet (Commit) aad5344f authored tarafından Guido van Rossum's avatar Guido van Rossum

Fix bug in ulaw2lin for 4-byte values

üst 0e69587d
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment