Fix some other shorten-64-to-32 casting error found by MSVC (64bits)

This commit is contained in:
Alexis La Goutte 2014-08-02 15:42:55 +02:00
parent 4bbb4172aa
commit 6c71889552
2 changed files with 3 additions and 3 deletions

View File

@ -236,8 +236,8 @@ ssize_t nghttp2_bufs_len(nghttp2_bufs *bufs)
static ssize_t bufs_avail(nghttp2_bufs *bufs) static ssize_t bufs_avail(nghttp2_bufs *bufs)
{ {
return (ssize_t)nghttp2_buf_avail(&bufs->cur->buf) + return (ssize_t)(nghttp2_buf_avail(&bufs->cur->buf) +
(bufs->chunk_length - bufs->offset) * (bufs->max_chunk - bufs->chunk_used); (bufs->chunk_length - bufs->offset) * (bufs->max_chunk - bufs->chunk_used));
} }
static int bufs_alloc_chain(nghttp2_bufs *bufs) static int bufs_alloc_chain(nghttp2_bufs *bufs)

View File

@ -1810,7 +1810,7 @@ ssize_t nghttp2_hd_inflate_hd(nghttp2_hd_inflater *inflater,
goto fail; goto fail;
} }
return in - first; return (ssize_t)(in - first);
fail: fail:
DEBUGF(fprintf(stderr, "inflatehd: error return %zd\n", rv)); DEBUGF(fprintf(stderr, "inflatehd: error return %zd\n", rv));