Cast away 64 -> 32 narrowing complaints.
"secs" in an nstime_t is a time_t; cast the calculated seconds portion to time_t. Change-Id: Ieaad4c18bb21384a5781f50eadd3a537b414a369 Reviewed-on: https://code.wireshark.org/review/10113 Reviewed-by: Guy Harris <guy@alum.mit.edu>
This commit is contained in:
parent
7a096c3844
commit
ea7cf08368
|
@ -1315,7 +1315,7 @@ static gint dissect_block(proto_tree *tree, packet_info *pinfo, tvbuff_t *tvb,
|
|||
|
||||
for (i_resolution = 0; i_resolution < (guint32)(interface_description->timestamp_resolution & 0x7F); i_resolution += 1)
|
||||
resolution *= base;
|
||||
timestamp.secs = ts.u64 / resolution;
|
||||
timestamp.secs = (time_t)(ts.u64 / resolution);
|
||||
timestamp.nsecs = (int)(ts.u64 - (ts.u64 / resolution) * resolution);
|
||||
|
||||
proto_tree_add_time(block_data_tree, hf_pcapng_timestamp, tvb, offset, 8, ×tamp);
|
||||
|
|
Loading…
Reference in New Issue