Add casts to let the compiler know that we know what we're doing here.

svn path=/trunk/; revision=46049
This commit is contained in:
Guy Harris 2012-11-16 22:21:22 +00:00
parent 6578ab9975
commit 889b302b0d
1 changed files with 4 additions and 4 deletions

View File

@ -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));