diff options
| author | Colin Ian King <[email protected]> | 2019-06-27 16:43:08 +0000 |
|---|---|---|
| committer | Takashi Iwai <[email protected]> | 2019-06-28 08:37:34 +0000 |
| commit | 2acf5a3e6e9371e63c9e4ff54d84d08f630467a0 (patch) | |
| tree | 315a683f95aed870a72f6e1b3148059132915985 /lib/mpi/mpi-pow.c | |
| parent | ALSA: hda/realtek: Add quirks for several Clevo notebook barebones (diff) | |
| download | kernel-2acf5a3e6e9371e63c9e4ff54d84d08f630467a0.tar.gz kernel-2acf5a3e6e9371e63c9e4ff54d84d08f630467a0.zip | |
ALSA: usb-audio: fix sign unintended sign extension on left shifts
There are a couple of left shifts of unsigned 8 bit values that
first get promoted to signed ints and hence get sign extended
on the shift if the top bit of the 8 bit values are set. Fix
this by casting the 8 bit values to unsigned ints to stop the
unintentional sign extension.
Addresses-Coverity: ("Unintended sign extension")
Signed-off-by: Colin Ian King <[email protected]>
Cc: <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-pow.c')
0 files changed, 0 insertions, 0 deletions
