diff options
author | Darien Spencer <cusneud@mail.com> | 2019-04-02 22:54:10 +0300 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2019-04-03 15:45:13 +0000 |
commit | 13f8f2c8dd97c1ab98e66b6716ed4b993fbfe78d (patch) | |
tree | a8cefce733416284c359d7afb198f2deaf2566c3 /epan | |
parent | 4b814187acf36b74479f6bd61d3ca98ff5d5734c (diff) |
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>
Diffstat (limited to 'epan')
-rw-r--r-- | epan/dissectors/packet-umts_fp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-umts_fp.c b/epan/dissectors/packet-umts_fp.c index fe2d924821..14af35d98f 100644 --- a/epan/dissectors/packet-umts_fp.c +++ b/epan/dissectors/packet-umts_fp.c @@ -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; |