aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap
diff options
context:
space:
mode:
authorMartin Mathieson <martin.r.mathieson@googlemail.com>2012-04-20 12:44:19 +0000
committerMartin Mathieson <martin.r.mathieson@googlemail.com>2012-04-20 12:44:19 +0000
commitd74383ed1cdd748cc12504afbf2dc6582997b42c (patch)
treee6f07202d35eee52e3f014570ac56a9a68c0f27d /wiretap
parent974014275d9192aa3c888280575d5377b27ab9f7 (diff)
Add a couple of casts to try to make the Windows-7-x64 buildbot happy.
svn path=/trunk/; revision=42159
Diffstat (limited to 'wiretap')
-rw-r--r--wiretap/vwr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/wiretap/vwr.c b/wiretap/vwr.c
index 5b4117cd76..5fea1aeb9f 100644
--- a/wiretap/vwr.c
+++ b/wiretap/vwr.c
@@ -693,10 +693,10 @@ static gboolean vwr_read(wtap *wth, int *err, gchar **err_info _U_, gint64 *data
/* before writing anything out, make sure the buffer has enough space for everything */
if ((FPGA_VERSION == vVW510021_W_FPGA) || (FPGA_VERSION == vVW510006_W_FPGA) )
/* frames are always 802.11 with an extended radiotap header */
- pkt_len = rec_size + sizeof(stats_common_fields) + sizeof(ext_rtap_fields);
+ pkt_len = (guint16)(rec_size + sizeof(stats_common_fields) + sizeof(ext_rtap_fields));
else
/* frames are always ethernet with an extended ethernettap header */
- pkt_len = rec_size + sizeof(stats_common_fields) + sizeof(stats_ethernettap_fields);
+ pkt_len = (guint16)(rec_size + sizeof(stats_common_fields) + sizeof(stats_ethernettap_fields));
buffer_assure_space(wth->frame_buffer, pkt_len);
data_ptr = buffer_start_ptr(wth->frame_buffer);