Attempt to fix compile error with msvc
This commit is contained in:
parent
37b09f6785
commit
e58db4f8b0
|
@ -1329,11 +1329,10 @@ nghttp2_hd_nv nghttp2_hd_table_get(nghttp2_hd_context *context, size_t idx) {
|
|||
return hd_ringbuf_get(&context->hd_table, idx - NGHTTP2_STATIC_TABLE_LENGTH)
|
||||
->nv;
|
||||
} else {
|
||||
nghttp2_hd_static_entry *ent;
|
||||
|
||||
ent = &static_table[idx];
|
||||
return (nghttp2_hd_nv){&ent->name, &ent->value, ent->token,
|
||||
NGHTTP2_NV_FLAG_NONE};
|
||||
nghttp2_hd_static_entry *ent = &static_table[idx];
|
||||
nghttp2_hd_nv nv = {&ent->name, &ent->value, ent->token,
|
||||
NGHTTP2_NV_FLAG_NONE};
|
||||
return nv;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -94,5 +94,6 @@ void nghttp2_rcbuf_decref(nghttp2_rcbuf *rcbuf) {
|
|||
}
|
||||
|
||||
nghttp2_vec nghttp2_rcbuf_get_buf(nghttp2_rcbuf *rcbuf) {
|
||||
return (nghttp2_vec){rcbuf->base, rcbuf->len};
|
||||
nghttp2_vec res = {rcbuf->base, rcbuf->len};
|
||||
return res;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue