Skip to content

Commit

Permalink
hosted/remote/protocol_v0_jtag: Fixed a missing widening cast to lega…
Browse files Browse the repository at this point in the history
…lise the packet data in shifting
  • Loading branch information
dragonmux committed Dec 16, 2023
1 parent a42f91a commit 1bf0eec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/platforms/hosted/remote/protocol_v0_jtag.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ void remote_v0_jtag_tdi_tdo_seq(uint8_t *data_out, bool final_tms, const uint8_t
const size_t bytes = (chunk_length + 7U) >> 3U;
if (data_in) {
for (size_t idx = 0; idx < bytes; ++idx)
packet_data_in |= data_in[offset + idx] << (idx * 8U);
packet_data_in |= (uint32_t)data_in[offset + idx] << (idx * 8U);
}
/*
* Build the remote protocol message to send, and send it.
Expand Down

0 comments on commit 1bf0eec

Please sign in to comment.