]> granicus.if.org Git - apache/commitdiff
mod_http2: merge r1726798 from trunk.
authorYann Ylavic <ylavic@apache.org>
Tue, 26 Jan 2016 14:34:57 +0000 (14:34 +0000)
committerYann Ylavic <ylavic@apache.org>
Tue, 26 Jan 2016 14:34:57 +0000 (14:34 +0000)
Fix warnings:
modules/http2/h2_util.c|174| warning: suggest parentheses around ‘+’ in operand of ‘&’
modules/http2/h2_util.c|176| warning: suggest parentheses around ‘+’ in operand of ‘&’

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1726801 13f79535-47bb-0310-9956-ffa450edef68

modules/http2/h2_util.c

index 47e70843e9fb15e51d033b2092fe77cc919e3d48..58bdcf3cf3199ba150fdd522084809fccd83c1cd 100644 (file)
@@ -170,10 +170,10 @@ const char *h2_util_base64url_encode(const char *data,
     enc = p;
     for (i = 0; i < mlen; i+= 3) {
         *p++ = BASE64URL_CHARS[ (udata[i] >> 2) & 0x3fu ];
-        *p++ = BASE64URL_CHARS[ (udata[i] << 4) + 
-                               ((i+1 < len)? (udata[i+1] >> 4) : 0) & 0x3fu ];
-        *p++ = BASE64URL_CHARS[ (udata[i+1] << 2) + 
-                               ((i+2 < len)? (udata[i+2] >> 6) : 0) & 0x3fu ];
+        *p++ = BASE64URL_CHARS[ ((udata[i] << 4) + 
+                                 ((i+1 < len)? (udata[i+1] >> 4) : 0)) & 0x3fu ];
+        *p++ = BASE64URL_CHARS[ ((udata[i+1] << 2) + 
+                                 ((i+2 < len)? (udata[i+2] >> 6) : 0)) & 0x3fu ];
         if (i+2 < len) {
             *p++ = BASE64URL_CHARS[ udata[i+2] & 0x3fu ];
         }