This is an automated email from the ASF dual-hosted git repository.
zwoop pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push:
new f7d387b coverity 1373297 : fix cast to try to address issue
coverity 1373300 : fix cast to try to address issue
f7d387b is described below
commit f7d387b6cb2469def84ab981f5256cf915c528d3
Author: Jason Kenny <[email protected]>
AuthorDate: Thu May 11 16:27:03 2017 -0400
coverity 1373297 : fix cast to try to address issue
coverity 1373300 : fix cast to try to address issue
---
proxy/http2/Http2ClientSession.cc | 2 +-
proxy/http2/Http2ConnectionState.cc | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/proxy/http2/Http2ClientSession.cc
b/proxy/http2/Http2ClientSession.cc
index 1ecafc4..97f5103 100644
--- a/proxy/http2/Http2ClientSession.cc
+++ b/proxy/http2/Http2ClientSession.cc
@@ -210,7 +210,7 @@ Http2ClientSession::set_upgrade_context(HTTPHdr *h)
// TODO ignore incoming invalid parameters and send suitable SETTINGS
// frame.
}
- upgrade_context.client_settings.set((Http2SettingsIdentifier)param.id,
param.value);
+
upgrade_context.client_settings.set(static_cast<Http2SettingsIdentifier>(param.id),
param.value);
}
}
diff --git a/proxy/http2/Http2ConnectionState.cc
b/proxy/http2/Http2ConnectionState.cc
index e080656..7a54c43 100644
--- a/proxy/http2/Http2ConnectionState.cc
+++ b/proxy/http2/Http2ConnectionState.cc
@@ -541,7 +541,7 @@ rcv_settings_frame(Http2ConnectionState &cstate, const
Http2Frame &frame)
cstate.update_initial_rwnd(param.value);
}
- cstate.client_settings.set((Http2SettingsIdentifier)param.id, param.value);
+ cstate.client_settings.set(static_cast<Http2SettingsIdentifier>(param.id),
param.value);
}
// [RFC 7540] 6.5. Once all values have been applied, the recipient MUST
--
To stop receiving notification emails like this one, please contact
['"[email protected]" <[email protected]>'].