diff options
author | Guy Harris <guy@alum.mit.edu> | 2012-11-16 22:21:22 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2012-11-16 22:21:22 +0000 |
commit | 889b302b0db05311a85780cbeb7d4a78e0d7deb5 (patch) | |
tree | 730e2ef5e2888d9ab606ac2b012094fb01463707 /epan/dissectors/packet-rtmpt.c | |
parent | 6578ab99754d83a0de428573395cff1add340f6d (diff) |
Add casts to let the compiler know that we know what we're doing here.
svn path=/trunk/; revision=46049
Diffstat (limited to 'epan/dissectors/packet-rtmpt.c')
-rw-r--r-- | epan/dissectors/packet-rtmpt.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/epan/dissectors/packet-rtmpt.c b/epan/dissectors/packet-rtmpt.c index a2497d2a7b..5a5e43b0a9 100644 --- a/epan/dissectors/packet-rtmpt.c +++ b/epan/dissectors/packet-rtmpt.c @@ -1044,8 +1044,8 @@ dissect_amf0_value_type(tvbuff_t *tvb, gint offset, proto_tree *tree, gboolean * break; case RTMPT_AMF0_DATE: iDoubleValue = tvb_get_ntohieee_double(tvb, iValueOffset); - t.secs = iDoubleValue/1000; - t.nsecs = (iDoubleValue - 1000*(double)t.secs) * 1000000; + t.secs = (time_t)(iDoubleValue/1000); + t.nsecs = (int)((iDoubleValue - 1000*(double)t.secs) * 1000000); proto_tree_add_time(val_tree, hf_rtmpt_amf_date, tvb, iValueOffset, 8, &t); iValueOffset += 8; proto_item_append_text(ti, " %s", abs_time_to_str(&t, ABSOLUTE_TIME_LOCAL, TRUE)); @@ -1269,8 +1269,8 @@ dissect_amf3_value_type(tvbuff_t *tvb, gint offset, proto_tree *tree, proto_item iValueOffset += iValueLength; iDoubleValue = tvb_get_ntohieee_double(tvb, iValueOffset); - t.secs = iDoubleValue/1000; - t.nsecs = (iDoubleValue - 1000*(double)t.secs) * 1000000; + t.secs = (time_t)(iDoubleValue/1000); + t.nsecs = (int)((iDoubleValue - 1000*(double)t.secs) * 1000000); proto_tree_add_time(val_tree, hf_rtmpt_amf_date, tvb, iValueOffset, 8, &t); iValueOffset += 8; proto_item_append_text(ti, "%s", abs_time_to_str(&t, ABSOLUTE_TIME_LOCAL, TRUE)); |