integers, used in push diaries and proxy window size calculations.
PR69741 [Benjamin P. Kallus]
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@
1927235 13f79535-47bb-0310-9956-
ffa450edef68
--- /dev/null
+ * mod_http2/mod_proxy_http2: fix a bug in calculating the log2 value of
+ integers, used in push diaries and proxy window size calculations.
+ PR69741 [Benjamin P. Kallus]
APLOG_USE_MODULE(proxy_http2);
/* h2_log2(n) iff n is a power of 2 */
-unsigned char h2_proxy_log2(int n)
+unsigned char h2_proxy_log2(unsigned int n)
{
int lz = 0;
if (!n) {
* common helpers
******************************************************************************/
/* h2_proxy_log2(n) iff n is a power of 2 */
-unsigned char h2_proxy_log2(int n);
+unsigned char h2_proxy_log2(unsigned int n);
/*******************************************************************************
* HTTP/2 header helpers
#include "h2_util.h"
/* h2_log2(n) iff n is a power of 2 */
-unsigned char h2_log2(int n)
+unsigned char h2_log2(unsigned int n)
{
int lz = 0;
if (!n) {
* common helpers
******************************************************************************/
/* h2_log2(n) iff n is a power of 2 */
-unsigned char h2_log2(int n);
+unsigned char h2_log2(unsigned int n);
/**
* Count the bytes that all key/value pairs in a table have