aboutsummaryrefslogtreecommitdiffstats
path: root/epan/nghttp2
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2014-07-18 23:37:39 -0700
committerGuy Harris <guy@alum.mit.edu>2014-07-19 06:38:56 +0000
commitbf514a5b3d40c66277db16e7435ac46536e98054 (patch)
tree80e3b9362326e0586967d22f4a2a60249c865889 /epan/nghttp2
parent4a182d48b1105889b51ee3bb06b033c636965130 (diff)
Add casts to squelch compiler warnings.
Change-Id: I100ec30e1e9ac204e3c9225278adc8a26992542a Reviewed-on: https://code.wireshark.org/review/3114 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan/nghttp2')
-rw-r--r--epan/nghttp2/nghttp2_buf.c4
-rw-r--r--epan/nghttp2/nghttp2_hd.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/epan/nghttp2/nghttp2_buf.c b/epan/nghttp2/nghttp2_buf.c
index af4af4b292..ad75519f8c 100644
--- a/epan/nghttp2/nghttp2_buf.c
+++ b/epan/nghttp2/nghttp2_buf.c
@@ -236,8 +236,8 @@ ssize_t nghttp2_bufs_len(nghttp2_bufs *bufs)
static ssize_t bufs_avail(nghttp2_bufs *bufs)
{
- return (ssize_t)nghttp2_buf_avail(&bufs->cur->buf) +
- (bufs->chunk_length - bufs->offset) * (bufs->max_chunk - bufs->chunk_used);
+ return (ssize_t)(nghttp2_buf_avail(&bufs->cur->buf) +
+ (bufs->chunk_length - bufs->offset) * (bufs->max_chunk - bufs->chunk_used));
}
static int bufs_alloc_chain(nghttp2_bufs *bufs)
diff --git a/epan/nghttp2/nghttp2_hd.c b/epan/nghttp2/nghttp2_hd.c
index 0972037304..8234fc1f13 100644
--- a/epan/nghttp2/nghttp2_hd.c
+++ b/epan/nghttp2/nghttp2_hd.c
@@ -2011,7 +2011,7 @@ ssize_t nghttp2_hd_inflate_hd(nghttp2_hd_inflater *inflater,
goto fail;
}
- return in - first;
+ return (ssize_t)(in - first);
fail:
DEBUGF(fprintf(stderr, "inflatehd: error return %zd\n", rv));