forked from osmocom/wireshark
FP: Fix ToA shown as unsigned
The 'sign' bit was treated like a regular bit because of direct casting to a wider int type Change-Id: Id0f095fa9bda97ecbdfc32f3610271eeea86fc2e Reviewed-on: https://code.wireshark.org/review/32688 Petri-Dish: Anders Broman <a.broman58@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
parent
4b814187ac
commit
13f8f2c8dd
|
@ -1074,7 +1074,7 @@ dissect_common_timing_adjustment(packet_info *pinfo, proto_tree *tree, tvbuff_t
|
|||
offset++;
|
||||
|
||||
/* ToA */
|
||||
toa = (gint32)tvb_get_ntohs(tvb, offset);
|
||||
toa = tvb_get_ntohis(tvb, offset);
|
||||
toa_ti = proto_tree_add_item(tree, hf_fp_toa, tvb, offset, 2, ENC_BIG_ENDIAN);
|
||||
offset += 2;
|
||||
|
||||
|
|
Loading…
Reference in New Issue