This is an automated email from the ASF dual-hosted git repository.
janc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git
The following commit(s) were added to refs/heads/master by this push:
new ef0fb14f9 native: Change pointer type casting to uintptr_t
ef0fb14f9 is described below
commit ef0fb14f99682da466ede8ddc1e711d7b76ef065
Author: Michal Gorecki <[email protected]>
AuthorDate: Fri Jul 14 12:01:56 2023 +0200
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;