Index: media/midi/usb_midi_output_stream.cc |
diff --git a/media/midi/usb_midi_output_stream.cc b/media/midi/usb_midi_output_stream.cc |
index 2f3289754f082edcae351fa7e5fab3ac0f95ffbe..8f1af70e926b24802dec1c90a5d1374f5a7daec2 100644 |
--- a/media/midi/usb_midi_output_stream.cc |
+++ b/media/midi/usb_midi_output_stream.cc |
@@ -98,7 +98,7 @@ bool UsbMidiOutputStream::PushSysExMessage(const std::vector<uint8>& data, |
message[message_size] = byte; |
++message_size; |
if (byte == kEndOfSysExByte) { |
- uint8 code_index = message_size + 0x4; |
+ uint8 code_index = static_cast<uint8>(message_size) + 0x4; |
DCHECK(code_index == 0x5 || code_index == 0x6 || code_index == 0x7); |
data_to_send->push_back((jack_.cable_number << 4) | code_index); |
data_to_send->insert(data_to_send->end(), |