Index: webrtc/audio/audio_receive_stream_unittest.cc |
diff --git a/webrtc/audio/audio_receive_stream_unittest.cc b/webrtc/audio/audio_receive_stream_unittest.cc |
index fd913dbf87ecb33965f0767fc5f8238e3fb1eb37..83c2246997fc3a6fc4c28b46339addc95cab699a 100644 |
--- a/webrtc/audio/audio_receive_stream_unittest.cc |
+++ b/webrtc/audio/audio_receive_stream_unittest.cc |
@@ -180,7 +180,7 @@ void BuildOneByteExtension(std::vector<uint8_t>::iterator it, |
const size_t kExtensionDataLength = kOneByteExtensionLength - 1; |
uint32_t shifted_value = extension_value |
<< (8 * (kExtensionDataLength - value_length)); |
- *it = (id << 4) + (value_length - 1); |
+ *it = (id << 4) + (static_cast<uint8_t>(value_length) - 1); |
++it; |
ByteWriter<uint32_t, kExtensionDataLength>::WriteBigEndian(&(*it), |
shifted_value); |