Fix compile error with gcc

This commit is contained in:
Tatsuhiro Tsujikawa 2015-10-15 00:30:42 +09:00
parent 061a557839
commit 837e716306
1 changed files with 2 additions and 1 deletions

View File

@ -70,5 +70,6 @@ void nghttp2_option_set_user_recv_extension_type(nghttp2_option *option,
}
option->opt_set_mask |= NGHTTP2_OPT_USER_RECV_EXT_TYPES;
option->user_recv_ext_types[type / 8] |= 1 << (7 - (type & 0x7));
option->user_recv_ext_types[type / 8] = (uint8_t)(
option->user_recv_ext_types[type / 8] | (1 << (7 - (type & 0x7))));
}