diff options
author | Gerald Combs <gerald@wireshark.org> | 2015-08-07 09:10:39 -0700 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2015-08-07 16:15:29 +0000 |
commit | c8ca0ae67fcacbb4e5fbaa5744606df73697e750 (patch) | |
tree | 76f968bffef7cdc6a8894416e9b2499a80571d45 /epan/dissectors/packet-btatt.c | |
parent | 7171ee57021f659bdb5870e7a210cbd164a1be3a (diff) |
Try to fix casting issues with older versions of GLib.
Try to fix
packet-btatt.c: In function 'btatt_handle_value':
packet-btatt.c:1420: warning: cast to pointer from integer of different size
packet-btatt.c: In function 'btatt_uuid16_value':
packet-btatt.c:1443: warning: cast to pointer from integer of different size
on the 32-bit OS X builder.
Change-Id: I02884c02e7f7f5f7b50da122127fa96c41c3603a
Reviewed-on: https://code.wireshark.org/review/9913
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'epan/dissectors/packet-btatt.c')
-rw-r--r-- | epan/dissectors/packet-btatt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-btatt.c b/epan/dissectors/packet-btatt.c index 020ce65ffe..34f0176868 100644 --- a/epan/dissectors/packet-btatt.c +++ b/epan/dissectors/packet-btatt.c @@ -1417,7 +1417,7 @@ static gpointer btatt_handle_value(packet_info *pinfo) value_data = (guint16 *) p_get_proto_data(pinfo->pool, pinfo, proto_btatt, PROTO_DATA_BTATT_HANDLE); if (value_data) - return GUINT_TO_POINTER(*value_data); + return GUINT_TO_POINTER((gulong)*value_data); return NULL; } @@ -1440,7 +1440,7 @@ static gpointer btatt_uuid16_value(packet_info *pinfo) value_data = (guint16 *) p_get_proto_data(pinfo->pool, pinfo, proto_btatt, PROTO_DATA_BTATT_UUID16); if (value_data) - return GUINT_TO_POINTER(*value_data); + return GUINT_TO_POINTER((gulong)*value_data); return NULL; } |