@@ -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 (
193+ session (), 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 (
201+ session (), static_cast <size_t >(max_streams));
200202 break ;
201203 }
202204 }
@@ -561,7 +563,7 @@ class Http3Application final : public Session::Application {
561563 // process any more data.
562564
563565 // On the client side, if id is equal to NGHTTP3_SHUTDOWN_NOTICE_STREAM_ID,
564- // or on the server if the id is equal to NGHTTP3_SHUSTDOWN_NOTICE_PUSH_ID ,
566+ // or on the server if the id is equal to NGHTTP3_SHUTDOWN_NOTICE_PUSH_ID ,
565567 // then this is a request to begin a graceful shutdown.
566568
567569 // This can be called multiple times but the id can only stay the same or
@@ -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
0 commit comments