We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf0bc6e commit 427e65aCopy full SHA for 427e65a
sxbp/serialisation.c
@@ -256,7 +256,7 @@ static void sxbp_read_sxbp_data_line(
256
* handle first byte on it's own as we only need least 6 bits of it
257
* bit mask and shift 3 bytes to left
258
*/
259
- line->length = (buffer->bytes[index] & 0x3f) << 24; // 0x3f = 0b00111111
+ line->length = (buffer->bytes[index] & 0x3fU) << 24; // 0x3f = 0b00111111
260
// next byte
261
index++;
262
// handle remaining 3 bytes in loop
0 commit comments