Fix kType narrowing conversion in the `{}`

Since narrowing conversion in the `{}` is ill-formed in C++11, it raises
compile error with G++ 4.8.2.

BUG=

Review URL: https://codereview.chromium.org/294523007

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@271427 0039d316-1c4b-4281-b951-d872f2087c98
parent b1897470
...@@ -2912,7 +2912,7 @@ TEST_P(SpdyFramerTest, SerializeBlocked) { ...@@ -2912,7 +2912,7 @@ TEST_P(SpdyFramerTest, SerializeBlocked) {
SpdyFramer framer(spdy_version_); SpdyFramer framer(spdy_version_);
const char kDescription[] = "BLOCKED frame"; const char kDescription[] = "BLOCKED frame";
const char kType = static_cast<unsigned char>( const unsigned char kType = static_cast<unsigned char>(
SpdyConstants::SerializeFrameType(spdy_version_, BLOCKED)); SpdyConstants::SerializeFrameType(spdy_version_, BLOCKED));
const unsigned char kFrameData[] = { const unsigned char kFrameData[] = {
0x00, 0x00, kType, 0x00, 0x00, 0x00, kType, 0x00,
...@@ -2978,7 +2978,7 @@ TEST_P(SpdyFramerTest, CreateAltSvc) { ...@@ -2978,7 +2978,7 @@ TEST_P(SpdyFramerTest, CreateAltSvc) {
SpdyFramer framer(spdy_version_); SpdyFramer framer(spdy_version_);
const char kDescription[] = "ALTSVC frame"; const char kDescription[] = "ALTSVC frame";
const char kType = static_cast<unsigned char>( const unsigned char kType = static_cast<unsigned char>(
SpdyConstants::SerializeFrameType(spdy_version_, ALTSVC)); SpdyConstants::SerializeFrameType(spdy_version_, ALTSVC));
const unsigned char kFrameData[] = { const unsigned char kFrameData[] = {
0x00, 0x17, kType, 0x00, 0x00, 0x17, kType, 0x00,
...@@ -5224,7 +5224,7 @@ TEST_P(SpdyFramerTest, OnAltSvcBadLengths) { ...@@ -5224,7 +5224,7 @@ TEST_P(SpdyFramerTest, OnAltSvcBadLengths) {
return; return;
} }
const char kType = static_cast<unsigned char>( const unsigned char kType = static_cast<unsigned char>(
SpdyConstants::SerializeFrameType(spdy_version_, ALTSVC)); SpdyConstants::SerializeFrameType(spdy_version_, ALTSVC));
{ {
TestSpdyVisitor visitor(spdy_version_); TestSpdyVisitor visitor(spdy_version_);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment