siren: Cast shift mask to unsigned value

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8229>
This commit is contained in:
Edward Hervey 2025-01-06 09:10:08 +01:00 committed by GStreamer Marge Bot
parent 9b5ea24e2b
commit 37a8d49eaa

View file

@ -210,7 +210,7 @@ Siren7_EncodeFrame (SirenEncoder encoder, unsigned char *DataIn,
}
if (checksum_bits > 0) {
BufferOut[idx - 1] &= (-1 << checksum_bits);
BufferOut[idx - 1] &= (((unsigned short) -1) << checksum_bits);
sum = 0;
idx = 0;
do {