Skip to content

Commit 6d0b4c7

Browse files
committed
quic: fixup build errors
1 parent 615c63e commit 6d0b4c7

2 files changed

Lines changed: 9 additions & 7 deletions

File tree

src/quic/application.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
};

src/quic/http3.cc

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff 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(
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

Comments
 (0)