trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zw...@apache.org
Subject trafficserver git commit: TS-3495 Fix one more cast
Date Sun, 05 Apr 2015 16:32:19 GMT
Repository: trafficserver
Updated Branches:
  refs/heads/master ede0f007d -> 1e6df5691


TS-3495 Fix one more cast


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

Branch: refs/heads/master
Commit: 1e6df5691ba68b9b8e4ccbb7f22fb1ce55227112
Parents: ede0f00
Author: Leif Hedstrom <zwoop@apache.org>
Authored: Sun Apr 5 10:32:00 2015 -0600
Committer: Leif Hedstrom <zwoop@apache.org>
Committed: Sun Apr 5 10:32:00 2015 -0600

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


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/1e6df569/proxy/http2/HTTP2.cc
----------------------------------------------------------------------
diff --git a/proxy/http2/HTTP2.cc b/proxy/http2/HTTP2.cc
index 4df3e5d..3a7d204 100644
--- a/proxy/http2/HTTP2.cc
+++ b/proxy/http2/HTTP2.cc
@@ -697,7 +697,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