From ef0fb14f99682da466ede8ddc1e711d7b76ef065 Mon Sep 17 00:00:00 2001 From: Michal Gorecki Date: Fri, 14 Jul 2023 12:01:56 +0200 Subject: [PATCH] native: Change pointer type casting to uintptr_t This is necessary to build native target on 64-bit architecture --- nimble/drivers/native/src/ble_phy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nimble/drivers/native/src/ble_phy.c b/nimble/drivers/native/src/ble_phy.c index e27f36e99..4609c2864 100644 --- a/nimble/drivers/native/src/ble_phy.c +++ b/nimble/drivers/native/src/ble_phy.c @@ -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;