Skip to content

Commit 260c29a

Browse files
committed
[rel][bug][hfp] Fix type conversion warning
Project: Bluetooth redmine: #id, REDMINE-id ext-redmine: bug|feat#id [Description in detail] Affected branch: [master] Change-Id: I7ea85095ab32201a79701c09bd17bd9c06e3a581
1 parent 5b23509 commit 260c29a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

service/bt/bt_audio/hfp_audio_api.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ static hfp_audio_env_t g_hfp_audio_env;
8585
/****************************************func define*************************************************/
8686
static int hfp_audio_client_callback(audio_server_callback_cmt_t cmd, void *userdata, uint32_t unused)
8787
{
88-
audio_type_t type = (audio_type_t)userdata;
88+
audio_type_t type = (audio_type_t)(uint32_t)userdata;
8989
//BT_DBG_D("hfp_audio_client_callback cmd=%d type=%d\r\n", cmd, type);
9090
return 0;
9191
}

0 commit comments

Comments
 (0)