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

Unified Diff: media/cast/net/rtp/packet_storage_unittest.cc

Issue 1488893003: Fix size_t truncations in media for 64-bit VS 2015 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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
« no previous file with comments | « media/cast/net/rtcp/rtcp_builder_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/net/rtp/packet_storage_unittest.cc
diff --git a/media/cast/net/rtp/packet_storage_unittest.cc b/media/cast/net/rtp/packet_storage_unittest.cc
index ddebb7ea57396306d22980f57ce7d22d35a653ec..062584593f7265ebf4a36729c63eae180f0efd12 100644
--- a/media/cast/net/rtp/packet_storage_unittest.cc
+++ b/media/cast/net/rtp/packet_storage_unittest.cc
@@ -33,9 +33,9 @@ static void StoreFrames(size_t number_of_frames,
for (size_t j = 0; j < kNumberOfPackets; ++j) {
Packet test_packet(1, 0);
packets.push_back(
- std::make_pair(
- PacedPacketSender::MakePacketKey(kTicks, kSsrc, j),
- new base::RefCountedData<Packet>(test_packet)));
+ std::make_pair(PacedPacketSender::MakePacketKey(
+ kTicks, kSsrc, base::checked_cast<uint16>(j)),
+ new base::RefCountedData<Packet>(test_packet)));
}
storage->StoreFrame(first_frame_id, packets);
++first_frame_id;
« no previous file with comments | « media/cast/net/rtcp/rtcp_builder_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698