File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -33,9 +33,9 @@ Session::Application_Options::operator const nghttp3_settings() const {
3333 // HTTP/3. Here we extract only the properties that are relevant to HTTP/3.
3434 return nghttp3_settings{
3535 max_field_section_size,
36- qpack_max_dtable_capacity,
37- qpack_encoder_max_dtable_capacity,
38- qpack_blocked_streams,
36+ static_cast < size_t >( qpack_max_dtable_capacity) ,
37+ static_cast < size_t >( qpack_encoder_max_dtable_capacity) ,
38+ static_cast < size_t >( qpack_blocked_streams) ,
3939 enable_connect_protocol,
4040 enable_datagrams,
4141 };
Original file line number Diff line number Diff line change @@ -189,14 +189,16 @@ class Http3Application final : public Session::Application {
189189 Debug (&session (),
190190 " HTTP/3 application extending max bidi streams to %" PRIu64,
191191 max_streams);
192- ngtcp2_conn_extend_max_streams_bidi (session (), max_streams);
192+ ngtcp2_conn_extend_max_streams_bidi (session (),
193+ static_cast <size_t >(max_streams));
193194 break ;
194195 }
195196 case Direction::UNIDIRECTIONAL: {
196197 Debug (&session (),
197198 " HTTP/3 application extending max uni streams to %" PRIu64,
198199 max_streams);
199- ngtcp2_conn_extend_max_streams_uni (session (), max_streams);
200+ ngtcp2_conn_extend_max_streams_uni (session (),
201+ static_cast <size_t >(max_streams));
200202 break ;
201203 }
202204 }
@@ -631,7 +633,7 @@ class Http3Application final : public Session::Application {
631633 NGHTTP3_CALLBACK_SCOPE (app);
632634 auto stream = From (stream_id, stream_user_data);
633635 if (stream == nullptr ) return NGHTTP3_ERR_CALLBACK_FAILURE;
634- app->AcknowledgeStreamData (stream, datalen);
636+ app->AcknowledgeStreamData (stream, static_cast < size_t >( datalen) );
635637 return NGTCP2_SUCCESS;
636638 }
637639
You can’t perform that action at this time.
0 commit comments