diff options
author | Anders Broman <anders.broman@ericsson.com> | 2011-08-09 20:42:06 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2011-08-09 20:42:06 +0000 |
commit | a60d91018f56f0beb6bfe7d797a0fea20be2339f (patch) | |
tree | 28894b09c2466353cc41a8a7dcafc154bbdf1256 /epan/dissectors/packet-hdfsdata.c | |
parent | d84729a7296e2f666a1c556c08eb9297410ff3a1 (diff) |
Add a cast.
svn path=/trunk/; revision=38436
Diffstat (limited to 'epan/dissectors/packet-hdfsdata.c')
-rw-r--r-- | epan/dissectors/packet-hdfsdata.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-hdfsdata.c b/epan/dissectors/packet-hdfsdata.c index 65f31616fd..e845e21ba3 100644 --- a/epan/dissectors/packet-hdfsdata.c +++ b/epan/dissectors/packet-hdfsdata.c @@ -234,8 +234,8 @@ dissect_read_response(tvbuff_t *tvb, proto_tree *hdfsdata_tree, int offset) /* if there is a crc checksum it is 8* the length of the data * checksum size / chunksize */ if (tvb_get_guint8(tvb, 2) == CRC) { - len = CRC_SIZE * tvb_get_ntohl(tvb, offset - 4) * - tvb_get_ntohl(tvb, offset - 8) / tvb_get_ntohl(tvb, CHUNKSIZE_START); + len = (int)(CRC_SIZE * tvb_get_ntohl(tvb, offset - 4) * + tvb_get_ntohl(tvb, offset - 8) / tvb_get_ntohl(tvb, CHUNKSIZE_START)); } /* the rest of bytes (usually 4) = crc32 code */ |