Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2159)

Unified Diff: media/cast/rtcp/test_rtcp_packet_builder.cc

Issue 145873006: ui/base/resource: Roll our own version of ReadBigEndian() function. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix for gcp20_device Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: media/cast/rtcp/test_rtcp_packet_builder.cc
diff --git a/media/cast/rtcp/test_rtcp_packet_builder.cc b/media/cast/rtcp/test_rtcp_packet_builder.cc
index e434e01d711c727f3410eb0fb1f3d5a6ccff3160..28f39341598ec7b51f41933501548b182ff5beba 100644
--- a/media/cast/rtcp/test_rtcp_packet_builder.cc
+++ b/media/cast/rtcp/test_rtcp_packet_builder.cc
@@ -9,7 +9,8 @@ namespace media {
namespace cast {
TestRtcpPacketBuilder::TestRtcpPacketBuilder()
- : ptr_of_length_(NULL), big_endian_writer_(buffer_, kMaxIpPacketSize) {}
+ : ptr_of_length_(NULL),
+ big_endian_writer_(reinterpret_cast<char*>(buffer_), kMaxIpPacketSize) {}
void TestRtcpPacketBuilder::AddSr(uint32 sender_ssrc,
int number_of_report_blocks) {

Powered by Google App Engine
This is Rietveld 408576698