@@ -1245,13 +1245,13 @@ static void hd_context_shrink_table_size(nghttp2_hd_context *context,
1245
1245
1246
1246
int nghttp2_hd_deflate_change_table_size (
1247
1247
nghttp2_hd_deflater * deflater , size_t settings_max_dynamic_table_size ) {
1248
- size_t next_bufsize = nghttp2_min ( settings_max_dynamic_table_size ,
1249
- deflater -> deflate_hd_table_bufsize_max );
1248
+ size_t next_bufsize = nghttp2_min_size (
1249
+ settings_max_dynamic_table_size , deflater -> deflate_hd_table_bufsize_max );
1250
1250
1251
1251
deflater -> ctx .hd_table_bufsize_max = next_bufsize ;
1252
1252
1253
1253
deflater -> min_hd_table_bufsize_max =
1254
- nghttp2_min (deflater -> min_hd_table_bufsize_max , next_bufsize );
1254
+ nghttp2_min_size (deflater -> min_hd_table_bufsize_max , next_bufsize );
1255
1255
1256
1256
deflater -> notify_table_size_change = 1 ;
1257
1257
@@ -1738,7 +1738,7 @@ static nghttp2_ssize hd_inflate_read_huff(nghttp2_hd_inflater *inflater,
1738
1738
static nghttp2_ssize hd_inflate_read (nghttp2_hd_inflater * inflater ,
1739
1739
nghttp2_buf * buf , const uint8_t * in ,
1740
1740
const uint8_t * last ) {
1741
- size_t len = nghttp2_min ((size_t )(last - in ), inflater -> left );
1741
+ size_t len = nghttp2_min_size ((size_t )(last - in ), inflater -> left );
1742
1742
1743
1743
buf -> last = nghttp2_cpymem (buf -> last , in , len );
1744
1744
@@ -1962,8 +1962,8 @@ nghttp2_ssize nghttp2_hd_inflate_hd_nv(nghttp2_hd_inflater *inflater,
1962
1962
rfin = 0 ;
1963
1963
rv = hd_inflate_read_len (
1964
1964
inflater , & rfin , in , last , 5 ,
1965
- nghttp2_min (inflater -> min_hd_table_bufsize_max ,
1966
- inflater -> settings_hd_table_bufsize_max ));
1965
+ nghttp2_min_size (inflater -> min_hd_table_bufsize_max ,
1966
+ inflater -> settings_hd_table_bufsize_max ));
1967
1967
if (rv < 0 ) {
1968
1968
goto fail ;
1969
1969
}
0 commit comments