diff options
author | AndersBroman <anders.broman@ericsson.com> | 2015-08-18 16:47:08 +0200 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2015-08-18 14:50:58 +0000 |
commit | a3c175a82332ba8be150caf5943a4d0a2b5ff552 (patch) | |
tree | 9081837ce33ef9705bb60afc50009c653971813a | |
parent | db87e622980dc511422f2eed96e5e8d56747b99e (diff) |
Add casts to passify buildboot.
Change-Id: I8aa4695f1f8dfdfc5bfcd4fb4f36e1b332581d5a
Reviewed-on: https://code.wireshark.org/review/10106
Reviewed-by: Anders Broman <a.broman58@gmail.com>
-rw-r--r-- | epan/dissectors/file-pcapng.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/file-pcapng.c b/epan/dissectors/file-pcapng.c index dcff37c465..84497016a6 100644 --- a/epan/dissectors/file-pcapng.c +++ b/epan/dissectors/file-pcapng.c @@ -1313,10 +1313,10 @@ static gint dissect_block(proto_tree *tree, packet_info *pinfo, tvbuff_t *tvb, base = 10; } - for (i_resolution = 0; i_resolution < (interface_description->timestamp_resolution & 0x7F); i_resolution += 1) + for (i_resolution = 0; i_resolution < (guint32)(interface_description->timestamp_resolution & 0x7F); i_resolution += 1) resolution *= base; timestamp.secs = ts.u64 / resolution; - timestamp.nsecs = ts.u64 - (ts.u64 / resolution) * resolution; + timestamp.nsecs = (int)(ts.u64 - (ts.u64 / resolution) * resolution); proto_tree_add_time(block_data_tree, hf_pcapng_timestamp, tvb, offset, 8, ×tamp); |