From 5a6b2dbdc03595d3843ca5166830d563fadcb619 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Mon, 18 Mar 2019 19:11:46 +0100 Subject: [PATCH] hci: fix commpile warning --- src/hci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hci.c b/src/hci.c index f01febf34..4ae223170 100644 --- a/src/hci.c +++ b/src/hci.c @@ -2537,7 +2537,7 @@ static void sco_schedule_tx(hci_connection_t * conn); static void sco_tx_timeout_handler(btstack_timer_source_t * ts){ log_info("SCO TX Timeout"); - hci_con_handle_t con_handle = (hci_con_handle_t) btstack_run_loop_get_timer_context(ts); + hci_con_handle_t con_handle = (hci_con_handle_t) (uintptr_t) btstack_run_loop_get_timer_context(ts); hci_connection_t * conn = hci_connection_for_handle(con_handle); if (!conn) return;