Skip to content

Commit

Permalink
Fix -Wconversion errors on macOS (#14)
Browse files Browse the repository at this point in the history
* Fix integer narrowing

* Bump version
  • Loading branch information
ryanplusplus authored Dec 7, 2024
1 parent 54b029a commit 4b3e535
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion library.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"maintainer": true
}
],
"version": "6.4.2",
"version": "6.4.3",
"frameworks": "*",
"platforms": "*",
"export": {
Expand Down
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 4b3e535

Please sign in to comment.