Skip to content

Commit

Permalink
Fix integer narrowing
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanplusplus committed Dec 7, 2024
1 parent 54b029a commit b64343c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tiny_comm.c
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ static void byte_received(void* context, const void* _args)

switch(self->receive_state) {
case receive_state_receive_crc_msb:
self->receive_crc = args->byte << 8;
self->receive_crc = (uint16_t)(args->byte << 8);
self->receive_state = receive_state_receive_crc_lsb;
break;

Expand Down

0 comments on commit b64343c

Please sign in to comment.