mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-06-06 05:14:45 +00:00
native: Change pointer type casting to uintptr_t
This is necessary to build native target on 64-bit architecture
This commit is contained in:
committed by
Szymon Janc
parent
064f050919
commit
ef0fb14f99
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user