Skip to content

Commit 427e65a

Browse files
committed
Change constant to unsigned to placate clang
1 parent bf0bc6e commit 427e65a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sxbp/serialisation.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ static void sxbp_read_sxbp_data_line(
256256
* handle first byte on it's own as we only need least 6 bits of it
257257
* bit mask and shift 3 bytes to left
258258
*/
259-
line->length = (buffer->bytes[index] & 0x3f) << 24; // 0x3f = 0b00111111
259+
line->length = (buffer->bytes[index] & 0x3fU) << 24; // 0x3f = 0b00111111
260260
// next byte
261261
index++;
262262
// handle remaining 3 bytes in loop

0 commit comments

Comments
 (0)