qmi-device: avoid warnings when putting the guint32 into a gpointer

This commit is contained in:
Aleksander Morgado 2012-04-24 09:41:19 +02:00
parent c8fa2d6a34
commit d1af06e435
1 changed files with 2 additions and 1 deletions

View File

@ -125,7 +125,8 @@ build_transaction_key (QmiMessage *message)
client_id = qmi_message_get_client_id (message);
transaction_id = qmi_message_get_transaction_id (message);
key = (gpointer)((((service << 8) | client_id) << 16) | transaction_id);
/* We're putting a 32 bit value into a gpointer */
key = GUINT_TO_POINTER ((((service << 8) | client_id) << 16) | transaction_id);
#ifdef MESSAGE_ENABLE_TRACE
{