aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-ptp.c
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2008-03-04 05:39:21 +0000
committerAnders Broman <anders.broman@ericsson.com>2008-03-04 05:39:21 +0000
commit781ed2c45e62e575b80f9618cae30d745f954a71 (patch)
tree899a3f3f9a0df1912a4f98ccb8bfed5b6cf7a0ee /epan/dissectors/packet-ptp.c
parent7f097fdc9bdee9138924e000a0579e3e75370133 (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. svn path=/trunk/; revision=24545
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));