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

Unified Diff: media/midi/usb_midi_output_stream.cc

Issue 1065743003: Reland: Web MIDI: split build rules for media/midi (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: gyp fix Created 5 years, 8 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/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;
DaleCurtis 2015/04/20 16:23:37 Same question for all these casts, if any of these
Takashi Toyoshima 2015/04/21 06:50:46 Incoming |data| is parsed inside this while loop,
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(),

Powered by Google App Engine
This is Rietveld 408576698