ETAG: add explicit casts to please OSX buildbot

Change-Id: I057ffc6eb5e6c16e05b0ddc1c069159980678b85
Reviewed-on: https://code.wireshark.org/review/16429
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
This commit is contained in:
Pascal Quantin 2016-07-14 14:33:01 +02:00
parent 4eecdff6ca
commit 644c009556
1 changed files with 2 additions and 2 deletions

View File

@ -144,8 +144,8 @@ dissect_etag(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_
proto_item *ti = proto_tree_add_item(tree, proto_etag, tvb, 0, IEEE8021BR_LEN - 2, ENC_NA);
e_cid = (((tci >> 16) & 0xFFF) | (tci << 12)) & 0xFFFFF; /* E-CID_base | E-CID_ext */
ing_e_cid = (((tci >> 32) & 0xFFF) | ((tci << 4) & 0xFF000)) & 0xFFFFF; /* Ingress_E-CID_base | Ingress_E-CID ext */
e_cid = (guint32)((((tci >> 16) & 0xFFF) | (tci << 12)) & 0xFFFFF); /* E-CID_base | E-CID_ext */
ing_e_cid = (guint32)((((tci >> 32) & 0xFFF) | ((tci << 4) & 0xFF000)) & 0xFFFFF); /* Ingress_E-CID_base | Ingress_E-CID ext */
if (etag_summary_in_tree) {
proto_item_append_text(ti, ", TCI: 0x%" G_GINT64_MODIFIER "x Ingress_E-CID: %u E-CID: %u", tci, ing_e_cid, e_cid);