diff options
author | Bill Meier <wmeier@newsguy.com> | 2013-12-14 18:50:23 +0000 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2013-12-14 18:50:23 +0000 |
commit | 81a67cec588fc599bd5625df3205f108e8747476 (patch) | |
tree | c470b048a259260b0120e971464deda393c37156 /epan/dissectors/packet-netflow.c | |
parent | 3ddb2011f916bce75a74855d14ea1818761ee41e (diff) |
Fix (I think) VS Code Analyzer warnings:
C6297: Arithmetic overflow: 32-bit value is shifted, then cast to 64-bit value.
Results might not be an expected value
svn path=/trunk/; revision=54104
Diffstat (limited to 'epan/dissectors/packet-netflow.c')
-rw-r--r-- | epan/dissectors/packet-netflow.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-netflow.c b/epan/dissectors/packet-netflow.c index 91e2636e6e..bb62df7cd8 100644 --- a/epan/dissectors/packet-netflow.c +++ b/epan/dissectors/packet-netflow.c @@ -2472,9 +2472,9 @@ dissect_v9_v10_pdu_data(tvbuff_t *tvb, packet_info *pinfo, proto_tree *pdutree, if (pen == REVPEN) { /* reverse PEN */ rev = 1; } else if (pen == 0) { - pen_type = (0xffff << 16) | pen_type; /* hack to force "unknown" */ + pen_type = (G_GUINT64_CONSTANT(0xffff) << 16) | pen_type; /* hack to force "unknown" */ } else { - pen_type = (pen << 16) | pen_type; + pen_type = (((guint64)pen) << 16) | pen_type; } } |