aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-erf.c
diff options
context:
space:
mode:
authorYour Name <you@example.com>2016-12-19 22:05:36 -0500
committerMichael Mann <mmann78@netscape.net>2016-12-20 19:17:51 +0000
commit98d350aeddfd85a1479dae133a2912e0b2313184 (patch)
tree9b87de480b56eacd63ef33c1d0a272aef46096f5 /epan/dissectors/packet-erf.c
parent795f4eb106d877ba6f2bd30524cc871404e9e42a (diff)
Cast larger types to time_t
Resolves truncation warnings on the x86 clang build Change-Id: I14ebbe39b8235bd1b909c488c0402b77deb6dde1 Reviewed-on: https://code.wireshark.org/review/19354 Petri-Dish: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/dissectors/packet-erf.c')
-rw-r--r--epan/dissectors/packet-erf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-erf.c b/epan/dissectors/packet-erf.c
index 576a63c0e9..fe380722f8 100644
--- a/epan/dissectors/packet-erf.c
+++ b/epan/dissectors/packet-erf.c
@@ -2088,7 +2088,7 @@ static proto_item *dissect_ptp_timeinterval(proto_tree *tree, const int hfindex,
ti += (ti & 0x8000) << 1; /* rounding */
ti_ns = ti >> 16;
- t.secs = ti_ns / NS_PER_S;
+ t.secs = (time_t) (ti_ns / NS_PER_S);
t.nsecs = (guint32)(ti_ns % NS_PER_S);
if (t.nsecs >= NS_PER_S) {
t.nsecs -= NS_PER_S;