Skip to content

Commit 1c2b977

Browse files
committed
Remove unecessary unsigned constant
1 parent 427e65a commit 1c2b977

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
@@ -130,7 +130,7 @@ static void sxbp_write_sxbp_data_line(
130130
) {
131131
size_t index = *start_index;
132132
// the leading 2 bits of the first byte are used for the direction
133-
buffer->bytes[index] = line.direction << 6u;
133+
buffer->bytes[index] = line.direction << 6;
134134
// the next 6 bits of the first byte are used for the first 6 bits of length
135135
buffer->bytes[index] |= (line.length >> 24);
136136
// move on to the next byte

0 commit comments

Comments
 (0)