Commit afc0ea7a authored by Stefan Eissing's avatar Stefan Eissing
Browse files

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
parent ad707cbb
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;
+1 −1
Original line number Diff line number Diff line
@@ -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;
        }