aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-ptp.c
diff options
context:
space:
mode:
authoretxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7>2008-03-04 05:39:21 +0000
committeretxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7>2008-03-04 05:39:21 +0000
commit377246afacc01710b637e4002ddf99e2be6d17fa (patch)
tree899a3f3f9a0df1912a4f98ccb8bfed5b6cf7a0ee /epan/dissectors/packet-ptp.c
parentf7d24e93b740af73942d8ed877b350ed987b9e6b (diff)
From ChrisMaynard:
packet-ptp.c(2183) : error C2220: warning treated as error - no object file generated packet-ptp.c(2183) : warning C4244: 'function' : conversion from '__int64 ' to 'double ', possible loss of data patch to correct the problem. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24545 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-ptp.c')
-rw-r--r--epan/dissectors/packet-ptp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-ptp.c b/epan/dissectors/packet-ptp.c
index ed098b178b..bf0a1eda73 100644
--- a/epan/dissectors/packet-ptp.c
+++ b/epan/dissectors/packet-ptp.c
@@ -2179,9 +2179,9 @@ dissect_ptp_v2_timeInterval(tvbuff_t *tvb, guint16 *cur_offset, proto_tree *tree
ptptimeInterval_subtree = proto_item_add_subtree(ptptimeInterval_ti, ett_ptp_v2_timeInterval);
- proto_tree_add_double_format(ptptimeInterval_subtree,
+ proto_tree_add_uint64_format_value(ptptimeInterval_subtree,
hf_ptp_v2_timeInterval_ns, tvb, *cur_offset, 6, time_ns, "Ns: %" G_GINT64_MODIFIER "d nanoseconds", time_ns);
-
+
proto_tree_add_double_format(ptptimeInterval_subtree,
hf_ptp_v2_timeInterval_subns, tvb, *cur_offset+6, 2, (time_subns/65536.0),
"SubNs: %f nanoseconds", (time_subns/65536.0));