From 837e71630600df6854f9d9fffc075787602a2a6e Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Thu, 15 Oct 2015 00:30:42 +0900 Subject: [PATCH] Fix compile error with gcc --- lib/nghttp2_option.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/nghttp2_option.c b/lib/nghttp2_option.c index 81ae6ba7..2201ec6e 100644 --- a/lib/nghttp2_option.c +++ b/lib/nghttp2_option.c @@ -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)))); }