From bad8a13a7532047cb53c4969a07506252e3a2aa5 Mon Sep 17 00:00:00 2001 From: "fbarchard@google.com" Date: Tue, 12 Aug 2014 22:39:06 +0000 Subject: Make a int64 constant use ULL suffix so it wont get truncated. BUG=3690 TESTED=try bots R=andrew@webrtc.org Review URL: https://webrtc-codereview.appspot.com/15139004 git-svn-id: http://webrtc.googlecode.com/svn/trunk/webrtc@6878 4adac7df-926f-26a2-2b94-8c16560cd09d --- modules/rtp_rtcp/source/rtcp_packet.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/rtp_rtcp/source/rtcp_packet.cc b/modules/rtp_rtcp/source/rtcp_packet.cc index 68da3aeb..4228cfbb 100644 --- a/modules/rtp_rtcp/source/rtcp_packet.cc +++ b/modules/rtp_rtcp/source/rtcp_packet.cc @@ -938,7 +938,7 @@ void Rpsi::Create(uint8_t* packet, size_t* length, size_t max_length) const { void Rpsi::WithPictureId(uint64_t picture_id) { const uint32_t kPidBits = 7; - const uint64_t k7MsbZeroMask = 0x1ffffffffffffff; + const uint64_t k7MsbZeroMask = 0x1ffffffffffffffULL; uint8_t required_bytes = 0; uint64_t shifted_pid = picture_id; do { -- cgit v1.2.3