Skip to content

Commit b9844c1

Browse files
committed
http2:settings fix warning
1 parent 42751d9 commit b9844c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/node_http2.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,8 +314,8 @@ void Http2Settings::Update(Http2Session* session, get_setting fn, bool local) {
314314
for (size_t i = 0; i < imax; i++) {
315315
// We flag unset the settings with a bit above the allowed range
316316
if (!(custom_settings.entries[i].settings_id & (~0xffff))) {
317-
int32_t settings_id =
318-
(int32_t)(custom_settings.entries[i].settings_id & 0xffff);
317+
uint32_t settings_id =
318+
(uint32_t)(custom_settings.entries[i].settings_id & 0xffff);
319319
size_t j = 0;
320320
while (j < count) {
321321
if ((buffer[IDX_SETTINGS_COUNT + 1 + j * 2 + 1] & 0xffff) ==

0 commit comments

Comments
 (0)