aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-bacapp.c
diff options
context:
space:
mode:
authorPeter Wu <peter@lekensteyn.nl>2015-10-04 19:08:03 +0200
committerPeter Wu <peter@lekensteyn.nl>2015-10-05 00:25:05 +0000
commit3182fbae51d51cf4417226d9e16ca82df1bdbc71 (patch)
treeee4601e50da67c5000ccc1624ef9f1b13d1fd041 /epan/dissectors/packet-bacapp.c
parent9a61687f0166d899e495ac4420ff5787ea6ec225 (diff)
bacapp: attempt to fix windows build
Reported by Graham: packet-bacapp.c(5299) : warning C4146: unary minus operator applied to unsigned type, result still unsigned Regression in v1.99.10rc0-330-g71ec57a ("bacapp: fix -Wshift-negative-value"). Change-Id: Ia3ea3acad3afdf7b8a449224c815ea45d7fdbc2b Reviewed-on: https://code.wireshark.org/review/10785 Reviewed-by: Graham Bloice <graham.bloice@trihedral.com> Petri-Dish: Peter Wu <peter@lekensteyn.nl> Reviewed-by: Peter Wu <peter@lekensteyn.nl>
Diffstat (limited to 'epan/dissectors/packet-bacapp.c')
-rw-r--r--epan/dissectors/packet-bacapp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-bacapp.c b/epan/dissectors/packet-bacapp.c
index d5726bd06c..e7a2125559 100644
--- a/epan/dissectors/packet-bacapp.c
+++ b/epan/dissectors/packet-bacapp.c
@@ -5296,7 +5296,7 @@ fSigned64(tvbuff_t *tvb, guint offset, guint32 lvt, gint64 *val)
valid = TRUE;
data = tvb_get_guint8(tvb, offset);
if ((data & 0x80) != 0)
- value = (G_GUINT64_CONSTANT(-1) << 8) | data;
+ value = (~G_GUINT64_CONSTANT(0) << 8) | data;
else
value = data;
for (i = 1; i < lvt; i++) {