Skip to content

Commit

Permalink
native: Change pointer type casting to uintptr_t
Browse files Browse the repository at this point in the history
This is necessary to build native target on 64-bit architecture
  • Loading branch information
m-gorecki authored and sjanc committed Jul 21, 2023
1 parent 064f050 commit ef0fb14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nimble/drivers/native/src/ble_phy.c
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ ble_phy_rxpdu_copy(uint8_t *dptr, struct os_mbuf *rxpdu)
struct os_mbuf_pkthdr *pkthdr;

/* Better be aligned */
assert(((uint32_t)dptr & 3) == 0);
assert(((uintptr_t)dptr & 3) == 0);

pkthdr = OS_MBUF_PKTHDR(rxpdu);
rem_bytes = pkthdr->omp_len;
Expand Down

0 comments on commit ef0fb14

Please sign in to comment.