diff options
author | Alexandr Savca <s.alex08@mail.ru> | 2018-04-19 18:48:19 +0300 |
---|---|---|
committer | Peter Wu <peter@lekensteyn.nl> | 2018-04-19 17:31:49 +0000 |
commit | b545c60658143a730619df7b6c6f6df2f22e6398 (patch) | |
tree | b14c5755c468494df409a5700fe33b41980e2b86 /epan/dissectors/packet-fmp.c | |
parent | 04aedf3682f3b65f2eeef2cfb0230354f420c696 (diff) |
Fix cppcheck 1.83 warnings
[packet-ber.c:2687]: (error) Shifting signed 32-bit value by 31 bits is undefined behaviour
[packet-erf.c:2475]: (error) Shifting signed 32-bit value by 31 bits is undefined behaviour
[packet-fmp.c:378]: (error) Shifting signed 32-bit value by 31 bits is undefined behaviour
[packet-http2.c:2050]: (error) Shifting signed 32-bit value by 31 bits is undefined behaviour
[packet-obd-ii.c:643]: (error) Shifting signed 32-bit value by 31 bits is undefined behaviour
[packet-yami.c:244]: (error) Shifting signed 32-bit value by 31 bits is undefined behaviour
Change-Id: Ie71f9f7c8f863d1e9c693bd56444f00bdad48042
Reviewed-on: https://code.wireshark.org/review/27019
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Tested-by: Petri Dish Buildbot
Diffstat (limited to 'epan/dissectors/packet-fmp.c')
-rw-r--r-- | epan/dissectors/packet-fmp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-fmp.c b/epan/dissectors/packet-fmp.c index f336bcfec0..fa887bc46b 100644 --- a/epan/dissectors/packet-fmp.c +++ b/epan/dissectors/packet-fmp.c @@ -375,7 +375,7 @@ dissect_fmp_flushCmd(tvbuff_t *tvb, int offset, proto_tree *tree) for (i = 0; cmd != 0 && i < 32; i++) { - bitValue = 1 << i; + bitValue = 1U << i; if (cmd & bitValue) { switch (bitValue) { |