trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sor...@apache.org
Subject [5/6] trafficserver git commit: TS-3495 Fix one more cast
Date Mon, 06 Apr 2015 16:45:15 GMT
TS-3495 Fix one more cast

(cherry picked from commit 1e6df5691ba68b9b8e4ccbb7f22fb1ce55227112)


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/bb90dd4e
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/bb90dd4e
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/bb90dd4e

Branch: refs/heads/5.3.x
Commit: bb90dd4ef667b577bdf4315140b84af17dc052c0
Parents: 3566048
Author: Leif Hedstrom <zwoop@apache.org>
Authored: Sun Apr 5 10:32:00 2015 -0600
Committer: Phil Sorber <sorber@apache.org>
Committed: Mon Apr 6 10:37:24 2015 -0600

----------------------------------------------------------------------
 proxy/http2/HTTP2.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/bb90dd4e/proxy/http2/HTTP2.cc
----------------------------------------------------------------------
diff --git a/proxy/http2/HTTP2.cc b/proxy/http2/HTTP2.cc
index 3d966d8..e55c4ab 100644
--- a/proxy/http2/HTTP2.cc
+++ b/proxy/http2/HTTP2.cc
@@ -698,7 +698,7 @@ http2_parse_header_fragment(HTTPHdr *hdr, IOVec iov, Http2DynamicTable
&dynamic_
     }
 
     // :path pseudo header MUST NOT empty for http or https URIs
-    if (name_len == HPACK_LEN_PATH && strncmp(name, HPACK_VALUE_PATH, name_len) ==
0) {
+    if (static_cast<unsigned>(name_len) == HPACK_LEN_PATH && strncmp(name,
HPACK_VALUE_PATH, name_len) == 0) {
       int value_len = 0;
       field->value_get(&value_len);
       if (value_len == 0) {


Mime
View raw message