From 9ff607de02e80493297d9928cec3044af073d79b Mon Sep 17 00:00:00 2001 From: bnc Date: Tue, 20 Jan 2015 11:35:43 -0800 Subject: [PATCH] Use static_cast instead of C-style cast in spdy_framer_test. This lands server change 83756755 by bnc. BUG=345769 Review URL: https://codereview.chromium.org/810793007 Cr-Commit-Position: refs/heads/master@{#312248} --- net/spdy/spdy_framer_test.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/net/spdy/spdy_framer_test.cc b/net/spdy/spdy_framer_test.cc index 2309bda8e0d5..0c9c5c168f2c 100644 --- a/net/spdy/spdy_framer_test.cc +++ b/net/spdy/spdy_framer_test.cc @@ -294,7 +294,8 @@ class TestSpdyVisitor : public SpdyFramerVisitorInterface, std::cerr << "OnStreamFrameData(" << stream_id << ", \""; if (len > 0) { for (size_t i = 0 ; i < len; ++i) { - std::cerr << std::hex << (0xFF & (unsigned int)data[i]) << std::dec; + std::cerr << std::hex << (0xFF & static_cast(data[i])) + << std::dec; } } std::cerr << "\", " << len << ")\n"; -- 2.11.4.GIT