Skip to content
Snippets Groups Projects
Commit 875342b1 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Get a bit more creative in casting (to shut up gcc)

parent 98ee65cc
No related branches found
No related tags found
No related merge requests found
Pipeline #5683 failed
......@@ -287,7 +287,7 @@ sftp_tx_pkt_reset(sftp_tx_pkt_t *pktp)
if (!grow_tx(pktp, sizeof(var))) \
return false; \
sftp_tx_pkt_t pkt = *pktp; \
memcpy((void*)(&(&pkt->type)[pkt->used]), &var, sizeof(var)); \
memcpy((uint64_t *)(&(&pkt->type)[pkt->used]), &var, sizeof(var)); \
pkt->used += sizeof(var); \
return true
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment