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
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;
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;
}