You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by zw...@apache.org on 2015/04/05 18:32:19 UTC
trafficserver git commit: TS-3495 Fix one more cast
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 <zw...@apache.org>
Authored: Sun Apr 5 10:32:00 2015 -0600
Committer: Leif Hedstrom <zw...@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) {