Skip to content

Commit

Permalink
http2:settings fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
martenrichter committed Dec 31, 2023
1 parent 42751d9 commit b9844c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/node_http2.cc
Original file line number Diff line number Diff line change
Expand Up @@ -314,8 +314,8 @@ void Http2Settings::Update(Http2Session* session, get_setting fn, bool local) {
for (size_t i = 0; i < imax; i++) {
// We flag unset the settings with a bit above the allowed range
if (!(custom_settings.entries[i].settings_id & (~0xffff))) {
int32_t settings_id =
(int32_t)(custom_settings.entries[i].settings_id & 0xffff);
uint32_t settings_id =
(uint32_t)(custom_settings.entries[i].settings_id & 0xffff);
size_t j = 0;
while (j < count) {
if ((buffer[IDX_SETTINGS_COUNT + 1 + j * 2 + 1] & 0xffff) ==
Expand Down

0 comments on commit b9844c1

Please sign in to comment.