From 96c374a162d1cafc33a06b1782e0e0f5ee49b081 Mon Sep 17 00:00:00 2001 From: Stefan Eissing Date: Mon, 10 Apr 2017 15:23:34 +0000 Subject: [PATCH] On the trunk: mod_http2: explicit int conversions to silence warnings in mod-h2 build. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1790855 13f79535-47bb-0310-9956-ffa450edef68 --- modules/http2/h2_session.c | 4 ++-- modules/http2/h2_stream.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/http2/h2_session.c b/modules/http2/h2_session.c index f37741b61f..997d6fb00e 100644 --- a/modules/http2/h2_session.c +++ b/modules/http2/h2_session.c @@ -792,13 +792,13 @@ static apr_status_t h2_session_create_int(h2_session **psession, return status; } - session->in_pending = h2_iq_create(session->pool, session->max_stream_count); + session->in_pending = h2_iq_create(session->pool, (int)session->max_stream_count); if (session->in_pending == NULL) { apr_pool_destroy(pool); return APR_ENOMEM; } - session->in_process = h2_iq_create(session->pool, session->max_stream_count); + session->in_process = h2_iq_create(session->pool, (int)session->max_stream_count); if (session->in_process == NULL) { apr_pool_destroy(pool); return APR_ENOMEM; diff --git a/modules/http2/h2_stream.c b/modules/http2/h2_stream.c index 9784b4ec28..4cd2132207 100644 --- a/modules/http2/h2_stream.c +++ b/modules/http2/h2_stream.c @@ -1008,7 +1008,7 @@ apr_status_t h2_stream_in_consumed(h2_stream *stream, apr_off_t amount) apr_off_t consumed = amount; while (consumed > 0) { - int len = (consumed > INT_MAX)? INT_MAX : consumed; + int len = (consumed > INT_MAX)? INT_MAX : (int)consumed; nghttp2_session_consume(session->ngh2, stream->id, len); consumed -= len; } -- 2.50.1