summaryrefslogtreecommitdiff
path: root/wiretap/mp2t.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2012-12-26 06:10:25 +0000
committerGuy Harris <guy@alum.mit.edu>2012-12-26 06:10:25 +0000
commit07350b2b53445b1a12a5dd0cd00881252640b8db (patch)
tree9ab1a4f52295af87b64d7ef618a13c9c8163ea6b /wiretap/mp2t.c
parentb0d6fbcdebf429a109fff2b5936aed5a02b1f087 (diff)
downloadwireshark-07350b2b53445b1a12a5dd0cd00881252640b8db.tar.gz
Squelch a (Y2.038K) warning.
svn path=/trunk/; revision=46751
Diffstat (limited to 'wiretap/mp2t.c')
-rw-r--r--wiretap/mp2t.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wiretap/mp2t.c b/wiretap/mp2t.c
index e80faf5e89..1ef731e49c 100644
--- a/wiretap/mp2t.c
+++ b/wiretap/mp2t.c
@@ -117,7 +117,7 @@ mp2t_read(wtap *wth, int *err, gchar **err_info, gint64 *data_offset)
* It would be really cool to be able to configure the bitrate...
*/
tmp = ((guint64)(*data_offset - mp2t->start_offset) * 8); /* offset, in bits */
- wth->phdr.ts.secs = tmp / MP2T_QAM256_BITRATE;
+ wth->phdr.ts.secs = (time_t)(tmp / MP2T_QAM256_BITRATE);
wth->phdr.ts.nsecs = (int)((tmp % MP2T_QAM256_BITRATE) * 1000000000 / MP2T_QAM256_BITRATE);
wth->phdr.caplen = MP2T_SIZE;